starocean999 opened a new pull request, #24290:
URL: https://github.com/apache/doris/pull/24290

   ## Proposed changes
   original SQL
   select t1.* from t1 where t1.k1 not in ( select t3.k1 from t3 where t1.k2 = 
t3.k2 );
   
   rewrite SQL
   before (wrong):
   select t1.* from t1 null aware left anti join t2 on t1.k1 = t3.k1 and t1.k2 
= t3.k2;
   now (correct):
   select t1.* from t1 left anti join t3 on t1.k2 = t3.k2 and (t1.k1 = t3.k1 or 
t3.k1 is null or t1.k1 is null);
   
   Issue Number: close #xxx
   
   <!--Describe your changes.-->
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


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