Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60470 from ClickHouse/ClibMouse-bugfix/kql-distri…
…buted-tables Merging #59674.
- Loading branch information
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
tests/queries/0_stateless/02985_dialects_with_distributed_tables.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
123 | ||
234 | ||
315 | ||
123 | ||
234 | ||
315 | ||
123 | ||
234 | ||
315 |
30 changes: 30 additions & 0 deletions
30
tests/queries/0_stateless/02985_dialects_with_distributed_tables.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
-- Tags: no-fasttest, distributed | ||
|
||
DROP TABLE IF EXISTS shared_test_table; | ||
DROP TABLE IF EXISTS distributed_test_table; | ||
|
||
CREATE TABLE shared_test_table (id UInt64) | ||
ENGINE = MergeTree | ||
ORDER BY (id); | ||
|
||
CREATE TABLE distributed_test_table | ||
ENGINE = Distributed(test_cluster_two_shard_three_replicas_localhost, currentDatabase(), shared_test_table); | ||
|
||
INSERT INTO shared_test_table VALUES (123), (651), (446), (315), (234), (764); | ||
|
||
SELECT id FROM distributed_test_table LIMIT 3; | ||
|
||
SET dialect = 'kusto'; | ||
|
||
distributed_test_table | take 3; | ||
|
||
SET dialect = 'prql'; | ||
|
||
from distributed_test_table | ||
select {id} | ||
take 1..3; | ||
|
||
SET dialect = 'clickhouse'; | ||
|
||
DROP TABLE distributed_test_table; | ||
DROP TABLE shared_test_table; |