mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
8f1845185e
Possible approach for fixing #10574 The problem is that prepared sets are built correctly, it is a hash map of key -> set where key is a hash of AST and list of data types (when we a list of tuples of literals). However, when the key is built from the index to try and find if there exists a prepared set that would match it looks for data types of the primary key (see how data_types is populated) because the primary key has only one field (v in my example) it can not find the prepared set. The patch looks for any prepared indexes where data types match for the subset of fields found in primary key, we are not interested in other fields anyway for the purpose of primary key pruning. |
||
---|---|---|
.. | ||
config | ||
external_models/catboost | ||
fuzz | ||
instructions | ||
integration | ||
perf_drafts | ||
performance | ||
queries | ||
users.d | ||
.gitignore | ||
clickhouse-client.xml | ||
clickhouse-test | ||
clickhouse-test-server | ||
client-test.xml | ||
CMakeLists.txt | ||
CTestCustom.cmake | ||
decimals_dictionary.xml | ||
ints_dictionary.xml | ||
msan_suppressions.txt | ||
server-test.xml | ||
stress | ||
strings_dictionary.xml | ||
tsan_suppressions.txt | ||
users.xml |