Update 01080_engine_merge_prewhere_tupleelement_error.sql

optimize_move_to_prewhere=0
This commit is contained in:
Denis Zhuravlev 2020-02-14 16:17:29 -04:00 committed by GitHub
parent eec35ce32d
commit dada5cf6ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,8 @@ CREATE TABLE A1( a DateTime ) ENGINE = MergeTree ORDER BY tuple();
CREATE TABLE A_M as A1 ENGINE = Merge(currentDatabase(), '^A1$');
insert into A1(a) select now();
set optimize_move_to_prewhere=0;
SELECT tupleElement(arrayJoin([(1, 1)]), 1) FROM A_M PREWHERE tupleElement((1, 1), 1) =1;
SELECT tupleElement(arrayJoin([(1, 1)]), 1) FROM A_M WHERE tupleElement((1, 1), 1) =1;