Michael Smith has uploaded a new patch set (#2). ( 
https://gerrit.cloudera.org/25336 )

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.cc
M be/src/udf/udf.h
M docs/topics/impala_udf.xml
3 files changed, 8 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/36/25336/2
--
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: 2
Gerrit-Owner: Michael Smith <[email protected]>

Reply via email to