Impala Public Jenkins has submitted this change and it was merged. ( 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 Reviewed-on: https://gerrit.cloudera.org/25336 Reviewed-by: Zoltan Borok-Nagy <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- 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(-) Approvals: Zoltan Borok-Nagy: Looks good to me, approved Impala Public Jenkins: Verified -- 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: merged Gerrit-Change-Id: Ie83ab2a26a50f32cfec49db3cc1a0da4f5f3eeaa Gerrit-Change-Number: 25336 Gerrit-PatchSet: 5 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]>
