mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
analyzer=1 and analyzer=0
This commit is contained in:
parent
ae9765244b
commit
7789e2e404
@ -19,7 +19,13 @@ INSERT INTO visits_order SELECT 2, 'user2', number from numbers(1, 10);
|
||||
INSERT INTO visits_order SELECT 2, 'another_user2', number*2 from numbers(1, 10);
|
||||
INSERT INTO visits_order SELECT 2, 'yet_another_user2', number*3 from numbers(1, 10);
|
||||
ALTER TABLE visits_order_dst ATTACH PARTITION ID '2' FROM visits_order;
|
||||
SET allow_experimental_analyzer=0;
|
||||
EXPLAIN SELECT * FROM visits_order_dst WHERE user_name='another_user2';
|
||||
Expression ((Projection + Before ORDER BY))
|
||||
Filter
|
||||
ReadFromMergeTree (user_name_projection)
|
||||
SET allow_experimental_analyzer=1;
|
||||
EXPLAIN SELECT * FROM visits_order_dst WHERE user_name='another_user2';
|
||||
Expression ((Project names + Projection))
|
||||
Filter
|
||||
ReadFromMergeTree (user_name_projection)
|
||||
|
@ -25,4 +25,10 @@ INSERT INTO visits_order SELECT 2, 'yet_another_user2', number*3 from numbers(1,
|
||||
|
||||
ALTER TABLE visits_order_dst ATTACH PARTITION ID '2' FROM visits_order;
|
||||
|
||||
SET allow_experimental_analyzer=0;
|
||||
|
||||
EXPLAIN SELECT * FROM visits_order_dst WHERE user_name='another_user2';
|
||||
|
||||
SET allow_experimental_analyzer=1;
|
||||
|
||||
EXPLAIN SELECT * FROM visits_order_dst WHERE user_name='another_user2';
|
||||
|
Loading…
Reference in New Issue
Block a user