CuteChuanChuan commented on PR #27133:
URL: https://github.com/apache/datafusion/pull/27133#issuecomment-7242000373

   > One problem is left: when the LATERAL sits under something that ignores 
duplicates, the extra rows never reach the result. So these queries return the 
right rows on 55.2.0 and main, but error with this PR...
   > I'm checking whether a small gate can handle that and will follow up here.
   
   @jayzhan211 thanks for the analysis, and sorry for the slow reply. I'd like 
to try passing a "duplicates ignored" flag down from no-aggregate Aggregates 
and semi/anti joins, through duplicate-preserving nodes only (Projection, 
Filter, joins, SubqueryAlias, Sort), resetting it elsewhere (e.g. Limit, 
Window), and then using it in the gate next to is_exists_or_in. A 
duplicate-insensitive aggregate such as max(sub.t1_id) ... GROUP BY t1.id, 
which is correct on main, would still error. I'd pin that with a statement 
error test unless you'd rather cover those too. Did your check turn up a 
smaller gate? If not, I'll push this with your four queries as tests.


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