fix 02815_join_algorithm_setting

This commit is contained in:
vdimir 2024-05-06 12:25:28 +02:00 committed by GitHub
parent 6d31638a69
commit b04cf7a698
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,4 +103,10 @@ JOIN ( SELECT k AS key, k + 100 AS key2 FROM t2 ) AS t2 ON t1.key = t2.key OR t1
-- But for CROSS choose `hash` algorithm even though it's not enabled
SELECT * FROM ( SELECT number AS key, number * 10 AS key2 FROM numbers_mt(10) ) AS t1
CROSS JOIN ( SELECT k AS key, k + 100 AS key2 FROM t2 ) AS t2 FORMAT Null;
CROSS JOIN ( SELECT k AS key, k + 100 AS key2 FROM t2 ) AS t2 FORMAT Null
SETTINGS allow_experimental_analyzer = 1;
-- ... (not for old analyzer)
SELECT * FROM ( SELECT number AS key, number * 10 AS key2 FROM numbers_mt(10) ) AS t1
CROSS JOIN ( SELECT k AS key, k + 100 AS key2 FROM t2 ) AS t2 FORMAT Null
SETTINGS allow_experimental_analyzer = 0; -- { serverError NOT_IMPLEMENTED }