You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jdbc-v2/src/test/java/com/clickhouse/jdbc/internal/SqlParserTest.java
+12-13Lines changed: 12 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -492,12 +492,12 @@ public static Object[][] testStatementWithoutResultSetDP() {
492
492
{"SHOW FUNCTIONS LIKE '%max%'", 0, true},
493
493
{"SHOW MERGES", 0, true},
494
494
{"SHOW MERGES LIKE 'your_t%' LIMIT 1", 0, true},
495
-
{"EXPLAIN SELECT sum(number) FROM numbers(10) GROUP BY number % ?;", 1, true},
496
-
{"EXPLAIN SELECT sum(number) FROM numbers(10) GROUP BY number % 4;", 0, true},
495
+
{"EXPLAIN SELECT sum(number) FROM numbers(10) GROUP BY number", 0, true},
496
+
{"EXPLAIN SELECT 1", 0, true},
497
+
{"EXPLAIN SELECT sum(number) FROM numbers(10) UNION ALL SELECT sum(number) FROM numbers(10) ORDER BY sum(number) ASC FORMAT TSV", 0, true},
497
498
{"DESCRIBE TABLE table", 0, true},
498
499
{"DESC TABLE table1", 0, true},
499
500
{"EXISTS TABLE `db`.`table01`", 0, true},
500
-
{"EXISTS TABLE ?", 1, true},
501
501
{"CHECK GRANT SELECT(col2) ON table_2", 0, true},
502
502
{"CHECK TABLE test_table", 0, true},
503
503
{"CHECK TABLE t0 PARTITION ID '201003' FORMAT PrettyCompactMonoBlock SETTINGS check_query_single_value_result = 0", 0, true},
@@ -512,8 +512,9 @@ public static Object[][] testStatementWithoutResultSetDP() {
512
512
{"CREATE DATABASE IF NOT EXISTS `test_db` ON CLUSTER `cluster` ENGINE = Replicated('clickhouse1:9000', 'test_db')", 0, false},
513
513
{"CREATE TABLE `test_table` (id UInt64)", 0, false},
514
514
{"CREATE TABLE IF NOT EXISTS `test_table` (id UInt64)", 0, false},
515
-
{"CREATE TABLE `test_table` (id UInt64) ENGINE = MergeTree() ORDER BY id", 0, false},
516
-
{"CREATE TABLE `test_table` (id UInt64 NOT NULL ) ENGINE = MergeTree() ORDER BY id", 0, false},
515
+
{"CREATE TABLE `test_table` (id UInt64) ENGINE = MergeTree ORDER BY (id)", 0, false},
516
+
{"CREATE TABLE `test_table` (id UInt64) ENGINE = Memory", 0, false},
517
+
{"CREATE TABLE `test_table` (id UInt64 NOT NULL ) ENGINE = MergeTree ORDER BY id", 0, false},
517
518
{"CREATE TABLE `test_table` (id UInt64 NULL ) ENGINE = MergeTree() ORDER BY id", 0, false},
518
519
{"CREATE TABLE `test_table` (id UInt64) ENGINE = MergeTree() ORDER BY id ON CLUSTER `cluster`", 0, false},
519
520
{"CREATE TABLE `test_table` (id UInt64) ENGINE = MergeTree() ORDER BY id ON CLUSTER `cluster` ENGINE = Replicated('clickhouse1:9000', 'test_db')", 0, false},
@@ -524,10 +525,9 @@ public static Object[][] testStatementWithoutResultSetDP() {
524
525
{"CREATE VIEW `test_db`.`source_table` source AS ( SELECT * FROM source_a UNION SELECT * FROM source_b) ENGINE = MaterializedView", 0, false},
525
526
{"CREATE VIEW `test_db`.`source_table` source AS ( SELECT * FROM source_a UNION SELECT * FROM source_b) ENGINE = MaterializedView()", 0, false},
526
527
{"CREATE VIEW `test_db`.`source_table` source AS ( SELECT * FROM source_a UNION SELECT * FROM source_b) ENGINE = MaterializedView() COMMENT 'for tests'", 0, false},
0 commit comments