korowa commented on issue #11883:
URL: https://github.com/apache/datafusion/issues/11883#issuecomment-2282747848

   Just some thoughts: maybe it's better not to expose this flag, but set it 
while planning in case of queries like
   ```
        with data as (
           select 1 as f
           union all
           select 2 as f
           union all
           select null as f
       )
       select * from data t1
           join data t2
               on t1.f is not distinct from t2.f; -- it (probably) may also be 
cool to support <=> operator here
   ```
   right now it's planned as cross (technically) join with filter, but in fact 
this query may be a hash join with null equals null. And specifying join 
conditions like this (via `is not distinct` or spaceship operator) potentially 
more convenient to control join behaviour (one query statements instead of `set 
datafusion.xxx = true` + query statement)


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