ClickHouse/tests/queries/0_stateless/01048_window_view_sql_parser.reference

23 lines
4.9 KiB
Plaintext
Raw Normal View History

---TUMBLE---
||---WINDOW COLUMN NAME---
CREATE TABLE default.`.inner.wv`\n(\n `WINDOW_ID(timestamp, toIntervalSecond(\'1\'))` UInt32, \n `count(a)` AggregateFunction(count, Int32)\n)\nENGINE = AggregatingMergeTree()\nPRIMARY KEY `WINDOW_ID(timestamp, toIntervalSecond(\'1\'))`\nORDER BY tuple(`WINDOW_ID(timestamp, toIntervalSecond(\'1\'))`)\nSETTINGS index_granularity = 8192
||---WINDOW COLUMN ALIAS---
CREATE TABLE default.`.inner.wv`\n(\n `WINDOW_ID(timestamp, toIntervalSecond(\'1\'))` UInt32, \n `count(a)` AggregateFunction(count, Int32)\n)\nENGINE = AggregatingMergeTree()\nPRIMARY KEY `WINDOW_ID(timestamp, toIntervalSecond(\'1\'))`\nORDER BY tuple(`WINDOW_ID(timestamp, toIntervalSecond(\'1\'))`)\nSETTINGS index_granularity = 8192
||---IDENTIFIER---
CREATE TABLE default.`.inner.wv`\n(\n `b` Int32, \n `WINDOW_ID(timestamp, toIntervalSecond(\'1\'))` UInt32, \n `count(a)` AggregateFunction(count, Int32)\n)\nENGINE = AggregatingMergeTree()\nPRIMARY KEY `WINDOW_ID(timestamp, toIntervalSecond(\'1\'))`\nORDER BY (`WINDOW_ID(timestamp, toIntervalSecond(\'1\'))`, b)\nSETTINGS index_granularity = 8192
CREATE TABLE default.`.inner.wv`\n(\n `WINDOW_ID(timestamp, toIntervalSecond(\'1\'))` UInt32, \n `b` Int32, \n `count(a)` AggregateFunction(count, Int32)\n)\nENGINE = AggregatingMergeTree()\nPRIMARY KEY `WINDOW_ID(timestamp, toIntervalSecond(\'1\'))`\nORDER BY (`WINDOW_ID(timestamp, toIntervalSecond(\'1\'))`, b)\nSETTINGS index_granularity = 8192
||---FUNCTION---
CREATE TABLE default.`.inner.wv`\n(\n `plus(a, b)` Int64, \n `WINDOW_ID(timestamp, toIntervalSecond(\'1\'))` UInt32, \n `count(a)` AggregateFunction(count, Int32)\n)\nENGINE = AggregatingMergeTree()\nPRIMARY KEY `WINDOW_ID(timestamp, toIntervalSecond(\'1\'))`\nORDER BY (`WINDOW_ID(timestamp, toIntervalSecond(\'1\'))`, `plus(a, b)`)\nSETTINGS index_granularity = 8192
CREATE TABLE default.`.inner.wv`\n(\n `WINDOW_ID(timestamp, toIntervalSecond(\'1\'))` UInt32, \n `plus(a, b)` Int64, \n `count(a)` AggregateFunction(count, Int32)\n)\nENGINE = AggregatingMergeTree()\nPRIMARY KEY `WINDOW_ID(timestamp, toIntervalSecond(\'1\'))`\nORDER BY (`WINDOW_ID(timestamp, toIntervalSecond(\'1\'))`, `plus(a, b)`)\nSETTINGS index_granularity = 8192
---HOP---
||---WINDOW COLUMN NAME---
2020-06-17 15:06:19 +00:00
CREATE TABLE default.`.inner.wv`\n(\n `WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))` UInt32, \n `count(a)` AggregateFunction(count, Int32)\n)\nENGINE = AggregatingMergeTree()\nPRIMARY KEY `WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))`\nORDER BY tuple(`WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))`)\nSETTINGS index_granularity = 8192
||---WINDOW COLUMN ALIAS---
2020-06-17 15:06:19 +00:00
CREATE TABLE default.`.inner.wv`\n(\n `WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))` UInt32, \n `count(a)` AggregateFunction(count, Int32)\n)\nENGINE = AggregatingMergeTree()\nPRIMARY KEY `WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))`\nORDER BY tuple(`WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))`)\nSETTINGS index_granularity = 8192
||---IDENTIFIER---
2020-06-17 15:06:19 +00:00
CREATE TABLE default.`.inner.wv`\n(\n `b` Int32, \n `WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))` UInt32, \n `count(a)` AggregateFunction(count, Int32)\n)\nENGINE = AggregatingMergeTree()\nPRIMARY KEY `WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))`\nORDER BY (`WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))`, b)\nSETTINGS index_granularity = 8192
CREATE TABLE default.`.inner.wv`\n(\n `WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))` UInt32, \n `b` Int32, \n `count(a)` AggregateFunction(count, Int32)\n)\nENGINE = AggregatingMergeTree()\nPRIMARY KEY `WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))`\nORDER BY (`WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))`, b)\nSETTINGS index_granularity = 8192
||---FUNCTION---
2020-06-17 15:06:19 +00:00
CREATE TABLE default.`.inner.wv`\n(\n `plus(a, b)` Int64, \n `WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))` UInt32, \n `count(a)` AggregateFunction(count, Int32)\n)\nENGINE = AggregatingMergeTree()\nPRIMARY KEY `WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))`\nORDER BY (`WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))`, `plus(a, b)`)\nSETTINGS index_granularity = 8192
CREATE TABLE default.`.inner.wv`\n(\n `WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))` UInt32, \n `plus(a, b)` Int64, \n `count(a)` AggregateFunction(count, Int32)\n)\nENGINE = AggregatingMergeTree()\nPRIMARY KEY `WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))`\nORDER BY (`WINDOW_ID(timestamp, toIntervalSecond(\'1\'), toIntervalSecond(\'3\'))`, `plus(a, b)`)\nSETTINGS index_granularity = 8192