comphead opened a new issue, #24854:
URL: https://github.com/apache/datafusion/issues/24854

   ```
   WITH mk_l(k, v) AS (                                                         
                                                                                
                                                  
     VALUES (1, 10), (2, 20), (3, 30), (4, 40), (CAST(NULL AS INTEGER), 50)     
                                                                                
                                                  
   ),                                                                           
                                                                                
                                                  
   mk_r(k) AS (                                                                 
                                                                                
                                                  
     VALUES (1), (2), (2), (CAST(NULL AS INTEGER))                              
                                                                                
                                                  
   )                                                                            
                                                                                
                                                  
   SELECT l.k, l.v                                                              
                                                                                
                                                  
   FROM mk_l AS l                                                               
                                                                                
                                                  
   WHERE l.v > 35 OR l.k NOT IN (SELECT r.k FROM mk_r AS r)                     
                                                                                
                                                  
   ORDER BY l.k, l.v;
   ```
   
   PostgreSQL
   ```
    k | v  
   ---+----
    4 | 40
      | 50
   (2 rows)
   ```
   
   DF
   ```
   +------+----+
   | k    | v  |
   +------+----+
   | 3    | 30 |
   | 4    | 40 |
   | NULL | 50 |
   +------+----+
   ```
   
   _Originally posted by @comphead in 
https://github.com/apache/datafusion/pull/24805#discussion_r3906053844_
               


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