Github user arina-ielchiieva commented on a diff in the pull request: https://github.com/apache/drill/pull/889#discussion_r131871360 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/JoinUtils.java --- @@ -231,6 +236,12 @@ public static boolean isScalarSubquery(RelNode root) { return true; } } + if(!hasMoreInputs && currentRel!=null){ + double rowSize = RelMetadataQuery.instance().getMaxRowCount(currentRel); + if(rowSize==1){ --- End diff -- Please add spaces: `if (rowSize == 1) {`
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---