We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38e89f4 commit e15af07Copy full SHA for e15af07
src/Storages/IStorageCluster.cpp
@@ -381,7 +381,7 @@ void IStorageCluster::read(
381
auto this_ptr = std::static_pointer_cast<IStorageCluster>(shared_from_this());
382
383
std::optional<Tables> external_tables = std::nullopt;
384
- if (send_external_tables)
+ if (send_external_tables && query_info.planner_context && query_info.planner_context->getMutableQueryContext())
385
external_tables = query_info.planner_context->getMutableQueryContext()->getExternalTables();
386
387
auto reading = std::make_unique<ReadFromCluster>(
0 commit comments