mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-10 00:12:27 +00:00
11 lines
480 B
Plaintext
11 lines
480 B
Plaintext
-- { echoOn }
|
|
select * from data prewhere indexHint(_partition_id = '1');
|
|
1
|
|
-- TODO: optimize_use_implicit_projections ignores indexHint (with analyzer) because source columns might be aliased.
|
|
select count() from data prewhere indexHint(_partition_id = '1') settings optimize_use_implicit_projections = 0;
|
|
1
|
|
select * from data where indexHint(_partition_id = '1');
|
|
1
|
|
select count() from data where indexHint(_partition_id = '1') settings optimize_use_implicit_projections = 0;
|
|
1
|