Hello Yida Wu, Zoltan Borok-Nagy, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
https://gerrit.cloudera.org/25336
to look at the new patch set (#4).
Change subject: IMPALA-15740: Make IsQueryCancelled() safe in the UDF test
harness
......................................................................
IMPALA-15740: Make IsQueryCancelled() safe in the UDF test harness
FunctionContext::IsQueryCancelled() dereferenced the RuntimeState
without a NULL check. The standalone UDF test harness creates contexts
with no RuntimeState, so calling it from a UDF aborted the test.
Return false when there is no RuntimeState, matching the NULL checks
in connected_user() and effective_user(). Update the header comment and
the UDF documentation accordingly.
Testing:
- Built the ImpalaUdf and Udf targets.
- Ran the CountNonZero() example from impala_udf.xml under the UDF
test harness; it passes and IsQueryCancelled() returns false.
Assisted-by: Claude Sonnet 5.5 (GitHub Copilot)
Change-Id: Ie83ab2a26a50f32cfec49db3cc1a0da4f5f3eeaa
---
M be/src/udf/udf-test.cc
M be/src/udf/udf.cc
M be/src/udf/udf.h
M docs/topics/impala_udf.xml
4 files changed, 17 insertions(+), 6 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/36/25336/4
--
To view, visit https://gerrit.cloudera.org/25336
To unsubscribe, visit https://gerrit.cloudera.org/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ie83ab2a26a50f32cfec49db3cc1a0da4f5f3eeaa
Gerrit-Change-Number: 25336
Gerrit-PatchSet: 4
Gerrit-Owner: Michael Smith <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Yida Wu <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>