fix tests

This commit is contained in:
Yarik Briukhovetskyi 2024-12-16 17:01:47 +01:00 committed by GitHub
parent 9ac3b50c27
commit e73958d55c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,14 +48,14 @@ TRUNCATE TABLE test_groupConcat;
INSERT INTO test_groupConcat VALUES (0, 95, 'abc', [1, 2, 3]), (1, NULL, 'a', [993, 986, 979, 972]), (2, 123, 'makson95', []); INSERT INTO test_groupConcat VALUES (0, 95, 'abc', [1, 2, 3]), (1, NULL, 'a', [993, 986, 979, 972]), (2, 123, 'makson95', []);
SELECT groupConcat(',', p_int) FROM test_groupConcat SETTINGS enable_analyzer=1; SELECT groupConcat(p_int, ',') FROM test_groupConcat SETTINGS enable_analyzer=1;
SELECT groupConcat('.')(p_string) FROM test_groupConcat SETTINGS enable_analyzer=1; SELECT groupConcat('.')(p_string) FROM test_groupConcat SETTINGS enable_analyzer=1;
SELECT groupConcat('/', p_array) FROM test_groupConcat SETTINGS enable_analyzer=1; SELECT groupConcat(p_array, '/') FROM test_groupConcat SETTINGS enable_analyzer=1;
SELECT group_concat('/', p_array) FROM test_groupConcat SETTINGS enable_analyzer=1; SELECT group_concat(p_array, '/') FROM test_groupConcat SETTINGS enable_analyzer=1;
SELECT grouP_CONcat('/', p_array) FROM test_groupConcat SETTINGS enable_analyzer=1; SELECT grouP_CONcat(p_array, '/') FROM test_groupConcat SETTINGS enable_analyzer=1;
SELECT grouP_CONcat(',')('/', p_array) FROM test_groupConcat SETTINGS enable_analyzer=1; -- overrides current parameter SELECT grouP_CONcat(',')(p_array, '/') FROM test_groupConcat SETTINGS enable_analyzer=1; -- overrides current parameter
SELECT grouP_CONcat(',', 2)('/', p_array) FROM test_groupConcat SETTINGS enable_analyzer=1; -- works fine with both arguments SELECT grouP_CONcat(',', 2)(p_array, '/') FROM test_groupConcat SETTINGS enable_analyzer=1; -- works fine with both arguments
DROP TABLE IF EXISTS test_groupConcat; DROP TABLE IF EXISTS test_groupConcat;