Skip to content

Mat view subquery + buffer table results in DB::Exception: There is no query #10437

@vmihailenco

Description

@vmihailenco
CREATE TABLE t1 (
  i UInt32,
  time DateTime
) ENGINE = MergeTree()
PARTITION BY time
ORDER BY time

CREATE TABLE t2 (
  i UInt32,
  time DateTime
) ENGINE = MergeTree()
PARTITION BY time
ORDER BY time

CREATE MATERIALIZED VIEW mv1
TO t2
AS SELECT * FROM (SELECT * FROM t1)

CREATE TABLE b1 AS t1
ENGINE = Buffer(default, t1, 1, 0, 0, 1, 1, 1, 1)

vmihailenco :) INSERT INTO b1 VALUES (1, now());

INSERT INTO b1 VALUES

Received exception from server (version 20.3.7):
Code: 393. DB::Exception: Received from localhost:9000. DB::Exception: There is no query.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed user-visible misbehaviour in official release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions