Search before asking
Version
Apache Doris
doris-4.1.2-rc01-aec169d2025
What's Wrong?
After upgrading to Apache Doris 4.1.2-rc01, we found that queries using ORDER BY ... LIMIT may hang indefinitely when the query needs to materialize non-key columns.
The problem disappears after disabling TopN Lazy Materialization by setting:
SET GLOBAL experimental_topn_lazy_materialization_threshold = 0;
This suggests the issue is related to the TopN Lazy Materialization / RowId Lookup execution path.
What You Expected?
The query should finish normally.
TopN Lazy Materialization should not hang.
How to Reproduce?
Doris缺陷.docx
Anything Else?
No response
Are you willing to submit PR?
Code of Conduct
Search before asking
Version
Apache Doris
doris-4.1.2-rc01-aec169d2025
What's Wrong?
After upgrading to Apache Doris 4.1.2-rc01, we found that queries using ORDER BY ... LIMIT may hang indefinitely when the query needs to materialize non-key columns.
The problem disappears after disabling TopN Lazy Materialization by setting:
SET GLOBAL experimental_topn_lazy_materialization_threshold = 0;
This suggests the issue is related to the TopN Lazy Materialization / RowId Lookup execution path.
What You Expected?
The query should finish normally.
TopN Lazy Materialization should not hang.
How to Reproduce?
Doris缺陷.docx
Anything Else?
No response
Are you willing to submit PR?
Code of Conduct