Mihaly Szjatinya has posted comments on this change. ( http://gerrit.cloudera.org:8080/24982 )
Change subject: IMPALA-15459: Add Iceberg-encoded theta sketch flavor for Puffin NDV stats ...................................................................... Patch Set 3: (4 comments) http://gerrit.cloudera.org:8080/#/c/24982/2//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/24982/2//COMMIT_MSG@22 PS2, Line 22: This patch adds an undocumented aggregate flavor, > Is this actually hidden from the users? The test suggest to me that it isn' Ack, maybe 'undocumented' would be better. It's the same status as ndv_no_finalize(). http://gerrit.cloudera.org:8080/#/c/24982/2/be/src/exprs/aggregate-functions-ir.cc File be/src/exprs/aggregate-functions-ir.cc: http://gerrit.cloudera.org:8080/#/c/24982/2/be/src/exprs/aggregate-functions-ir.cc@2806 PS2, Line 2806: static void DsThetaUpdateRaw(const void* bytes, size_t len, StringVal* dst) { > nit: create a helper that does most of this? Besides the type (int32 here) Done - added the DsThetaUpdateRaw(bytes, len, dst) helper. http://gerrit.cloudera.org:8080/#/c/24982/2/fe/src/main/java/org/apache/impala/catalog/BuiltinsDb.java File fe/src/main/java/org/apache/impala/catalog/BuiltinsDb.java: http://gerrit.cloudera.org:8080/#/c/24982/2/fe/src/main/java/org/apache/impala/catalog/BuiltinsDb.java@459 PS2, Line 459: // Update symbols for ds_theta_sketch_iceberg(). BOOLEAN, INT, FLOAT and DATE need the > nit: comments are bit verbose Done - moved the details to the AggregateFunctions::DsThetaUpdateIceberg declaration in aggregate-functions.h and left a short pointer to it here. Trimmed the comment at the registration site as well. http://gerrit.cloudera.org:8080/#/c/24982/2/testdata/workloads/functional-query/queries/QueryTest/datasketches-theta.test File testdata/workloads/functional-query/queries/QueryTest/datasketches-theta.test: http://gerrit.cloudera.org:8080/#/c/24982/2/testdata/workloads/functional-query/queries/QueryTest/datasketches-theta.test@623 PS2, Line 623: ---- QUERY > Add same check for other types? Done on both counts. The table is gone - a CTE does the job. -- To view, visit http://gerrit.cloudera.org:8080/24982 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I78c76c38dffa9807eb13ad465afab0b80f31984a Gerrit-Change-Number: 24982 Gerrit-PatchSet: 3 Gerrit-Owner: Mihaly Szjatinya <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Mihaly Szjatinya <[email protected]> Gerrit-Reviewer: Peter Rozsa <[email protected]> Gerrit-Comment-Date: Tue, 13 Oct 2026 14:42:38 +0000 Gerrit-HasComments: Yes
