Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 2.9.0
-
None
Description
As explained by tarmstrong in IMPALA-4995:
We should also consider switching to the sort operator for large limits. This allows it to spill. The memory requirements for TopN also are problematic for large limits, since it would allocate large vectors that are untracked and also require a large amount of contiguous memory.
There's already logic to select TopN vs. Sort: planner/SingleNodePlanner.java#L289
Attachments
Issue Links
- is related to
-
IMPALA-7777 Fix crash due to arithmetic overflows in Exchange Node
- Resolved
- relates to
-
IMPALA-3471 TopN should be able to spill
- Open
-
IMPALA-4995 crash when limit clause > MAX_INT
- Resolved