You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2021/09/30 07:59:50 UTC
[GitHub] [calcite] mikasaakeman commented on a change in pull request #2550: [CALCITE-4809] mixed merge join result isn't incomplete
mikasaakeman commented on a change in pull request #2550:
URL: https://github.com/apache/calcite/pull/2550#discussion_r719155525
##########
File path: linq4j/src/main/java/org/apache/calcite/linq4j/EnumerableDefaults.java
##########
@@ -4275,13 +4275,22 @@ private boolean advance() {
// mergeJoin assumes inputs sorted in ascending order with nulls last,
// if we reach a null key, we are done.
if (leftKey == null || rightKey == null) {
- if (joinType == JoinType.LEFT || (joinType == JoinType.ANTI && leftKey != null)) {
- // all remaining items in left are results for left/anti join
- remainingLeft = true;
- return true;
+ if (rightKey == null || !(getLeftEnumerator() instanceof MergeJoinEnumerator
Review comment:
In theory, there should be an orderby outside the inner left join, but there is no
--
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: commits-unsubscribe@calcite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org