Skip to content

Materialized views enters suspended immediately #6029

@rmja

Description

@rmja

To reproduce

CREATE TABLE Samples ( 
	Time TIMESTAMP,
	DeviceId INT,
	Register SYMBOL CAPACITY 256 CACHE INDEX CAPACITY 256,
	Value DOUBLE
) timestamp(Time) PARTITION BY MONTH WAL
DEDUP UPSERT KEYS(Time,DeviceId,Register);

CREATE MATERIALIZED VIEW Samples_latest AS
  SELECT
    Time as UnixEpoch,
    last(Time) AS Time,
    DeviceId,
    Register,
    last(Value) AS Value
  FROM
    Samples
  SAMPLE BY 2y;

INSERT INTO Samples (Time, DeviceId, Register, Value) VALUES (now(), 1, 'hello', 123);

SELECT * FROM wal_tables() WHERE suspended;

QuestDB version:

9.0.1

OS, in case of Docker specify Docker and the Host OS:

Windows

File System, in case of Docker specify Host File System:

ntfs

Full Name:

Rasmus Melchior Jacobsen

Affiliation:

Utiliread

Have you followed Linux, MacOs kernel configuration steps to increase Maximum open files and Maximum virtual memory areas limit?

  • Yes, I have

Additional context

This is a regression, it worked fine in v8. Changing SAMPLE BY period to 1y works.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions