Zoltan Borok-Nagy has posted comments on this change. ( 
https://gerrit.cloudera.org/25281 )

Change subject: IMPALA-15593: Document UDF changes in Impala 5.0
......................................................................


Patch Set 1:

(7 comments)

Thanks for working on this! Checked with Opus as well, and added its findings.

https://gerrit.cloudera.org/#/c/25281/1/docs/impala_keydefs.ditamap
File docs/impala_keydefs.ditamap:

https://gerrit.cloudera.org/#/c/25281/1/docs/impala_keydefs.ditamap@10941
PS1, Line 10941: keys="udf_cancellation"/>
nit: fits earlier line


https://gerrit.cloudera.org/#/c/25281/1/docs/topics/impala_incompatible_changes.xml
File docs/topics/impala_incompatible_changes.xml:

https://gerrit.cloudera.org/#/c/25281/1/docs/topics/impala_incompatible_changes.xml@58
PS1, Line 58:           <li>ARM64 UDF and UDA binary compatibility
>From Opus:
I can't reproduce an ARM64-only break. With the old and new udf.h, DecimalVal 
has
size 32 and val16 at offset 16 on both arches. alignof goes from 16 to 8 on 
both,
and clang --target=aarch64 emits identical code for both headers. It is passed 
by
reference/sret (user-defined copy ctor), so alignment doesn't change the calling
convention. Do you have a failing ARM64 case? If not, drop the entry or turn it 
into
a general "rebuild UDFs against the 5.0 headers" recommendation for both arches.


https://gerrit.cloudera.org/#/c/25281/1/docs/topics/impala_udf.xml
File docs/topics/impala_udf.xml:

https://gerrit.cloudera.org/#/c/25281/1/docs/topics/impala_udf.xml@674
PS1, Line 674:               When upgrading to <keyword keyref="impala50"/> on 
ARM64, rebuild UDFs and
Same as the one for impala_incompatible_changes.xml:58


https://gerrit.cloudera.org/#/c/25281/1/docs/topics/impala_udf.xml@814
PS1, Line 814:           Automatic C++ local variables do not persist after a 
UDF call returns. To keep
I think we should keep the sentence "The input arguments remain allocated for 
the lifetime of the function, so you can refer to them in the expressions for 
your return values"


https://gerrit.cloudera.org/#/c/25281/1/docs/topics/impala_udf.xml@830
PS1, Line 830: UDAs
UDAs get no prepare/close, so a UDA has nowhere to free state it sets with 
SetFunctionState() (Allocate()d memory is reported as leaked at close). Say 
that, or drop UDAs from the title and the intro sentence.


https://gerrit.cloudera.org/#/c/25281/1/docs/topics/impala_udf.xml@883
PS1, Line 883: once with
             :           <codeph>FRAGMENT_LOCAL</codeph>
nit: maybe add: with MT_DOP > 1 it runs several times per fragment on a host.


https://gerrit.cloudera.org/#/c/25281/1/docs/topics/impala_udf.xml@1060
PS1, Line 1060:           The standalone UDF test harness does not provide a 
live query cancellation
>From Opus:
It doesn't just fail to simulate: under UdfTestHarness::ValidateUdf, your 
CountNonZero example aborts (the SDK RuntimeState stub's is_cancelled() is 
assert(false), and the test context has a NULL state). Say "don't call it under 
the harness", or make it return false there (follow-up Jira?)



--
To view, visit https://gerrit.cloudera.org/25281
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I24d3dd1289a99a8647d32c5c273fa584130bab83
Gerrit-Change-Number: 25281
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Smith <[email protected]>
Gerrit-Reviewer: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Noemi Pap-Takacs <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
Gerrit-Comment-Date: Wed, 04 Nov 2026 13:24:26 +0000
Gerrit-HasComments: Yes

Reply via email to