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

   `SELECT 0 AS x1, (CASE WHEN t.a IS NOT NULL THEN 1.0 ELSE 0 END) AS x2 FROM 
t`
   
   0 AS x1 was pushed down to bottom project. Then it will be used to normalize 
case when expr, and change it to
    (CASE WHEN t.a IS NOT NULL THEN 1.0 ELSE **x1** END) AS x2 
   
   the literal 0 was replaced by x1 accidentally. This pr fix it by keep 
constant expr in output list
   
   Issue Number: close #xxx
   
   <!--Describe your changes.-->
   
   


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to