-
Notifications
You must be signed in to change notification settings - Fork 17
Antalya 26.1; Remote initiator improvements 2 #1608
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.1
Are you sure you want to change the base?
Changes from 2 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 |
|---|---|---|
|
|
@@ -114,10 +114,11 @@ 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_cluster_function = typename Base::Configuration().isClusterSupported(); | ||
|
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.
Assigning Useful? React with 👍 / 👎. |
||
|
|
||
| if (is_cluster_function) | ||
| { | ||
| /// Name may be empty, but cluster workaround may be used in remote initiator case | ||
| ASTPtr cluster_name_arg = make_intrusive<ASTLiteral>(settings[Setting::object_storage_cluster].value); | ||
| args.insert(args.begin(), cluster_name_arg); | ||
| BaseCluster::parseArgumentsImpl(args, context); | ||
|
|
||
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.
The new
if (!isClusterSupported() || cluster_name_from_settings.empty())branch now routesobject_storage_remote_initiator=1queries throughupdateQueryToSendIfNeeded(..., make_cluster_function=false)even when the storage explicitly reportsisClusterSupported()==false. For datalake configs likeStorageLocalPaimonConfiguration(used byPaimonLocal),StorageObjectStorageCluster::updateQueryForDistributedEngineIfNeededcannot map the engine name (PaimonLocal) to a table function and throws a logical error before the remote call is built. Previously these queries fell back to pure local read; now they fail whenever remote initiator is enabled.Useful? React with 👍 / 👎.