-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor constant folding #3851
Conversation
Hide behind `distributed_optimize_skip_select_on_unused_shards` setting.
- add test_unavailable_shard cluster
@@ -89,6 +89,7 @@ struct Settings | |||
M(SettingBool, skip_unavailable_shards, false, "Silently skip unavailable shards.") \ | |||
\ | |||
M(SettingBool, distributed_group_by_no_merge, false, "Do not merge aggregation states from different servers for distributed query processing - in case it is for certain that there are different keys on different shards.") \ | |||
M(SettingBool, distributed_optimize_skip_select_on_unused_shards, false, "Assumes that data is distributed by sharding_key. Optimization to skip unused shards if SELECT query filters by sharding_key.") \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will rename this setting, because all optimization settings begins with optimize_
.
const auto & slot_to_shard = cluster->getSlotToShard(); | ||
|
||
#define CREATE_FOR_TYPE(TYPE) \ | ||
if (typeid_cast<const DataType##TYPE *>(result.type.get())) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not the same. See #3683
Better to remove copy-paste.
@abyss7 @alexey-milovidov cool! thanks for taking care of this! |
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en