liukun4515 commented on PR #7155:
URL: 
https://github.com/apache/arrow-datafusion/pull/7155#issuecomment-1661988145

   > 
   
   
   
   > > 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.
   
   Thanks for your explanation.
   


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

Reply via email to