francisoliverlee opened a new issue #4730:
URL: https://github.com/apache/incubator-doris/issues/4730
**Describe the bug**
query with lead or lag will cause some be down
**To Reproduce**
` select lead(last_stage_id, 1, null) over (
partition by student_id
order by
paid_date_time
) as next_stage_id,
lead(is_refund_order, 1, null) over (
partition by student_id
order by
paid_date_time
) as next_is_refund_order,
lead(consumption, 1, null) over (
partition by student_id
order by
paid_date_time
) as next_consumption,
lead(paid_date_time, 1, null) over (
partition by student_id
order by
paid_date_time
) as next_paid_date_time
from xxxx`
**Expected behavior**
exec normally
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]