ClickHouse/tests/queries/0_stateless/02982_create_mv_inner_extra.reference
Azat Khuzhin 8eb528cbe6 Fix passing projections/indexes from CREATE query into inner table of MV
Before this patch any additional syntax, like:
- projections
- data skipping indexes

Had not been passed to the inner table (in case MV had been created
without explicit TO table). Yes, this is not a "recommended" way of
using, but still, it should work.

v2: fix tests failures for Ordinary engine
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-01-28 13:09:52 +01:00

6 lines
562 B
Plaintext

CREATE TABLE x (`key` String) ENGINE = MergeTree PRIMARY KEY key ORDER BY key SETTINGS index_granularity = 8192
CREATE TABLE x (`key` String) ENGINE = MergeTree PRIMARY KEY tuple(key) ORDER BY tuple(key) SETTINGS index_granularity = 8192
CREATE TABLE x (`key` String) ENGINE = Null
CREATE TABLE x (`key` String, INDEX idx key TYPE bloom_filter GRANULARITY 1) ENGINE = MergeTree ORDER BY key SETTINGS index_granularity = 8192
CREATE TABLE x (`key` String, PROJECTION p (SELECT uniqCombined(key))) ENGINE = MergeTree ORDER BY key SETTINGS index_granularity = 8192