Skip to content

Commit

Permalink
Improve error message when colocated join is requested but workermana…
Browse files Browse the repository at this point in the history
…ger is disabled (apache#14947)
  • Loading branch information
gortiz authored Feb 12, 2025
1 parent 2bb5cd0 commit 42335ae
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ private WorkerManager getWorkerManager(SqlNodeAndOptions sqlNodeAndOptions) {
}
switch (inferPartitionHint.toLowerCase()) {
case "true":
Objects.requireNonNull(workerManager, "WorkerManager is required in order to infer partition hint");
Objects.requireNonNull(workerManager, "WorkerManager is required in order to infer partition hint. "
+ "Please enable it using broker config"
+ CommonConstants.Broker.CONFIG_OF_ENABLE_PARTITION_METADATA_MANAGER + "=true");
return workerManager;
case "false":
return null;
Expand Down

0 comments on commit 42335ae

Please sign in to comment.