You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "mustafasrepo (via GitHub)" <gi...@apache.org> on 2023/08/02 10:46:31 UTC
[GitHub] [arrow-datafusion] mustafasrepo commented on pull request #7155: HashJoin order fixing
mustafasrepo commented on PR #7155:
URL: https://github.com/apache/arrow-datafusion/pull/7155#issuecomment-1661982971
> If we don't consider the special case ...
> Does we can get the right result?
Yes, the result will be correct but it would be sub-optimal. Consider the hash join where left table ordering is `left ASC` and right table ordering is `right ASC`. If the join type is right output ordering of the hash join would be `right ASC`. If the join type were, inner join output ordering would be `right ASC, left ASC`. (lexicographical). This special case handles this. If we do not use it, we would produce `right ASC` for inner join. This is correct also.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org