Michael Smith created IMPALA-15376:
--------------------------------------
Summary: Undefined AnalyticEvalNode::GetNext on empty
window_tuples_
Key: IMPALA-15376
URL: https://issues.apache.org/jira/browse/IMPALA-15376
Project: IMPALA
Issue Type: Bug
Components: Backend
Reporter: Michael Smith
AnalyticEvalNode::GetNext() unconditionally called window_tuples_.front() when
deciding whether to transfer the prev tuple pool to the output batch.
window_tuples_ can legitimately be empty at that point (e.g. right after all
window tuples have been popped, or when prev_pool_last_window_idx_ was recorded
as the -1 sentinel), so calling front() on the empty deque is undefined
behavior.
Newer Clang versions identify this as undefined in UBSAN builds.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)