Zoltan Borok-Nagy has posted comments on this change. ( https://gerrit.cloudera.org/25336 )
Change subject: IMPALA-15740: Make IsQueryCancelled() safe in the UDF test harness ...................................................................... Patch Set 2: Code-Review+2 (2 comments) LGTM! Only left optional and nit comments. https://gerrit.cloudera.org/#/c/25336/2/be/src/udf/udf.cc File be/src/udf/udf.cc: https://gerrit.cloudera.org/#/c/25336/2/be/src/udf/udf.cc@331 PS2, Line 331: bool FunctionContext::IsQueryCancelled() const { Optional: add a test for it to udf-test.cc BooleanVal IsCancelledUdf(FunctionContext* context) { return BooleanVal(context->IsQueryCancelled()); } TEST(UdfTest, TestIsQueryCancelled) { EXPECT_TRUE(UdfTestHarness::ValidateUdf<BooleanVal>( IsCancelledUdf, BooleanVal(false))); } https://gerrit.cloudera.org/#/c/25336/2/be/src/udf/udf.cc@333 PS2, Line 333: NULL nit: we prefer nullptr -- 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: comment Gerrit-Change-Id: Ie83ab2a26a50f32cfec49db3cc1a0da4f5f3eeaa Gerrit-Change-Number: 25336 Gerrit-PatchSet: 2 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]> Gerrit-Comment-Date: Thu, 05 Nov 2026 09:35:49 +0000 Gerrit-HasComments: Yes
