starocean999 opened a new issue, #10308:
URL: https://github.com/apache/doris/issues/10308

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Version
   
   master
   
   ### What's Wrong?
   
   SELECT online_detail.game_code, next_login_time
   FROM (
   select dwd_online_detail.game_code, LEAD(dwd_online_detail.login_time, 1, 
'9999-12-30 00:00:00') OVER () AS next_login_time
   from dim_account_userid_mapping right join dwd_online_detail
   on dim_account_userid_mapping.game_code = dwd_online_detail.game_code
   ) online_detail
   LEFT JOIN (
       SELECT day, game AS game_code, dt
       FROM ods_logout
   ) logout
   ON online_detail.game_code = logout.game_code;
   
   crash because of the LEAD function didn't produce nullable type value 
correctly.
   
   ### What You Expected?
   
   get the correct result
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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