mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
fix tests
This commit is contained in:
parent
2df794a354
commit
3e19c98fe0
@ -1,4 +1,5 @@
|
||||
[1,4,5]
|
||||
['c','a']
|
||||
['2023-01-01 00:00:00']
|
||||
['2023-01-01']
|
||||
['2023-01-01']
|
||||
|
@ -14,19 +14,12 @@ INSERT INTO test_string VALUES (['ae', 'ab', 'a', 'bb', 'c']);
|
||||
SELECT groupArrayIntersect(*) FROM test_string;
|
||||
DROP TABLE test_string;
|
||||
|
||||
DROP TABLE IF EXISTS test_datetime64_2;
|
||||
CREATE TABLE test_datetime64_2 (a Array(DateTime64)) engine=MergeTree ORDER BY a;
|
||||
INSERT INTO test_datetime64_2 VALUES ([toDateTime64('2023-01-01 00:00:00', 2), toDateTime64('2023-01-01 01:02:03', 2), toDateTime64('2023-01-01 02:03:04', 2)]);
|
||||
INSERT INTO test_datetime64_2 VALUES ([toDateTime64('2023-01-01 00:00:00', 2), toDateTime64('2023-01-01 01:02:04', 2), toDateTime64('2023-01-01 02:03:05', 2)]);
|
||||
SELECT groupArrayIntersect(*) from test_datetime64_2; -- { serverError BAD_ARGUMENTS }
|
||||
DROP TABLE test_datetime64_2;
|
||||
|
||||
DROP TABLE IF EXISTS test_datetime64_3;
|
||||
CREATE TABLE test_datetime64_3 (a Array(DateTime64)) engine=MergeTree ORDER BY a;
|
||||
INSERT INTO test_datetime64_3 VALUES ([toDateTime64('2023-01-01 00:00:00', 2), toDateTime64('2023-01-01 01:02:03', 2), toDateTime64('2023-01-01 02:03:04', 2)]);
|
||||
INSERT INTO test_datetime64_3 VALUES ([toDateTime64('2023-01-01 00:00:00', 2), toDateTime64('2023-01-01 01:02:04', 2), toDateTime64('2023-01-01 02:03:05', 2)]);
|
||||
SELECT groupArrayIntersect(*) from test_datetime64_3; -- { serverError BAD_ARGUMENTS }
|
||||
DROP TABLE test_datetime64_3;
|
||||
DROP TABLE IF EXISTS test_datetime;
|
||||
CREATE TABLE test_datetime (a Array(DateTime64)) engine=MergeTree ORDER BY a;
|
||||
INSERT INTO test_datetime VALUES ([toDateTime('2023-01-01 00:00:00'), toDateTime('2023-01-01 01:02:03'), toDateTime('2023-01-01 02:03:04')]);
|
||||
INSERT INTO test_datetime VALUES ([toDateTime('2023-01-01 00:00:00'), toDateTime('2023-01-01 01:02:04'), toDateTime('2023-01-01 02:03:05')]);
|
||||
SELECT groupArrayIntersect(*) from test_datetime;
|
||||
DROP TABLE test_datetime;
|
||||
|
||||
DROP TABLE IF EXISTS test_date32;
|
||||
CREATE TABLE test_date32 (a Array(Date32)) engine=MergeTree ORDER BY a;
|
||||
|
Loading…
Reference in New Issue
Block a user