You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2020/06/19 00:04:50 UTC
[GitHub] [druid] clintropolis commented on a change in pull request #10041: global table only if joinable
clintropolis commented on a change in pull request #10041:
URL: https://github.com/apache/druid/pull/10041#discussion_r442563697
##########
File path: server/src/main/java/org/apache/druid/server/ClientQuerySegmentWalker.java
##########
@@ -187,10 +198,15 @@ public ClientQuerySegmentWalker(
@Override
public <T> QueryRunner<T> getQueryRunnerForSegments(Query<T> query, Iterable<SegmentDescriptor> specs)
{
- // Inlining isn't done for segments-based queries.
+ // Inlining isn't done for segments-based queries, but we still globalify the table datasources if possible
+ final Query<T> freeTradeQuery = query.withDataSource(globalizeIfPossible(query.getDataSource()));
if (canRunQueryUsingClusterWalker(query)) {
- return decorateClusterRunner(query, clusterClient.getQueryRunnerForSegments(query, specs));
+ return new QuerySwappingQueryRunner<>(
+ decorateClusterRunner(freeTradeQuery, clusterClient.getQueryRunnerForSegments(query, specs)),
Review comment:
oops, good catch, fixed :+1:
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org