Zoltan Borok-Nagy has posted comments on this change. ( https://gerrit.cloudera.org/24982 )
Change subject: IMPALA-15459: Add Iceberg-encoded theta sketch flavor for Puffin NDV stats ...................................................................... Patch Set 6: (3 comments) A few optional/nits, otherwise LGTM! https://gerrit.cloudera.org/#/c/24982/6/be/src/exprs/aggregate-functions-ir.cc File be/src/exprs/aggregate-functions-ir.cc: https://gerrit.cloudera.org/#/c/24982/6/be/src/exprs/aggregate-functions-ir.cc@2883 PS6, Line 2883: if (arg_type->precision <= ColumnType::MAX_DECIMAL4_PRECISION) { optional: use ctx->impl()->GetConstFnAttr(FunctionContextImpl::ARG_TYPE_SIZE, 0) and switch on 4/8/16, like HllUpdate(DecimalVal). Codegen then folds the branch instead of calling GetArgType() on every row. https://gerrit.cloudera.org/#/c/24982/6/be/src/exprs/aggregate-functions.h File be/src/exprs/aggregate-functions.h: https://gerrit.cloudera.org/#/c/24982/6/be/src/exprs/aggregate-functions.h@361 PS6, Line 361: TINYINT and SMALLINT are not supported nit: "TINYINT and SMALLINT are not supported", but they are accepted and implicitly cast to INT (your last test shows this). Maybe "have no own overload; they are implicitly cast to INT". https://gerrit.cloudera.org/#/c/24982/6/testdata/workloads/functional-query/queries/QueryTest/datasketches-theta.test File testdata/workloads/functional-query/queries/QueryTest/datasketches-theta.test: https://gerrit.cloudera.org/#/c/24982/6/testdata/workloads/functional-query/queries/QueryTest/datasketches-theta.test@660 PS6, Line 660: # Check the exact bytes ds_theta_sketch_iceberg() hashes for each value against the All new queries read fewer than 5000 rows, so with this test's dimension (disable_codegen_rows_threshold=5000) they only run interpreted. COMPUTE STATS will run the compiled path. Could you add set disable_codegen_rows_threshold=0; to the exact-byte checks? -- To view, visit https://gerrit.cloudera.org/24982 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I78c76c38dffa9807eb13ad465afab0b80f31984a Gerrit-Change-Number: 24982 Gerrit-PatchSet: 6 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-Reviewer: Zoltan Borok-Nagy <[email protected]> Gerrit-Comment-Date: Mon, 02 Nov 2026 10:54:13 +0000 Gerrit-HasComments: Yes
