somu-imply commented on code in PR #14886:
URL: https://github.com/apache/druid/pull/14886#discussion_r1316415469


##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/querykit/BaseLeafFrameProcessor.java:
##########
@@ -96,7 +98,11 @@ private static Pair<List<ReadableFrameChannel>, 
BroadcastJoinHelper> makeInputCh
       final long memoryReservedForBroadcastJoin
   )
   {
-    if (!(dataSource instanceof JoinDataSource) && !sideChannels.isEmpty()) {
+    // An UnnestDataSource or FilteredDataSource can have a join as a base
+    // In such a case a side channel is expected to be there
+    if (!(dataSource instanceof JoinDataSource
+          || dataSource instanceof UnnestDataSource

Review Comment:
   Now that I think, we just need to check if the FilteredDataSource or 
UnnestDataSource has a Join as its base 



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to