-
Notifications
You must be signed in to change notification settings - Fork 18
Fix aggregation flow with remote initiator #1872
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
base: antalya-26.3
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -117,7 +117,10 @@ void TableFunctionObjectStorageClusterFallback<Definition, Base>::parseArguments | |
| const auto & settings = context->getSettingsRef(); | ||
|
|
||
| is_cluster_function = !settings[Setting::object_storage_cluster].value.empty() && typename Base::Configuration().isClusterSupported(); | ||
| is_remote = settings[Setting::object_storage_remote_initiator]; | ||
| // Remote initiator requires 'object_storage_cluster' or 'object_storage_remote_initiator_cluster' | ||
| is_remote = settings[Setting::object_storage_remote_initiator] | ||
| && (!settings[Setting::object_storage_cluster].value.empty() | ||
| || !settings[Setting::object_storage_remote_initiator_cluster].value.empty()); | ||
|
Comment on lines
+121
to
+123
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When Useful? React with 👍 / 👎.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| if (is_cluster_function) | ||
| { | ||
|
|
||
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.
When
object_storage_remote_initiator=1is set on the fallbacks3/object-storage table functions but bothobject_storage_clusterandobject_storage_remote_initiator_clusterare empty, this now makesis_remotefalse and routes the query throughBaseSimple. That bypasses the existingIStorageCluster::readvalidation that raisesBAD_ARGUMENTSfor this invalid configuration, so a misconfigured query silently runs locally instead of failing or using a remote initiator.Useful? React with 👍 / 👎.