Csaba Ringhofer has posted comments on this change. ( http://gerrit.cloudera.org:8080/24889 )
Change subject: IMPALA-15106: Support missing types with theta sketches ...................................................................... Patch Set 3: (6 comments) http://gerrit.cloudera.org:8080/#/c/24889/1//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/24889/1//COMMIT_MSG@47 PS1, Line 47: NOTE: > This ticket is a prerequisite for 15004. It prepares these functions to be As Hive is available, I think that we should test the new types against it since day 1, either against baked in Hive results or actually running the queries in Hive. It is not a problem if some types work differently than in Hive (as we follow Iceberg and they don't) or are not available there, but we should know about it. http://gerrit.cloudera.org:8080/#/c/24889/3//COMMIT_MSG Commit Message: http://gerrit.cloudera.org:8080/#/c/24889/3//COMMIT_MSG@11 PS3, Line 11: to all types that COMPUTE STATS processe nit: to all types where COMPUTE stats compute NDV - for example geometry has stats but not NDV. http://gerrit.cloudera.org:8080/#/c/24889/3//COMMIT_MSG@39 PS3, Line 39: single-value serialization encoding (Appendix D). It could be highlighted that this is the only case where the conversion is lossy - 2 timestamps that only differ in nanosec part, but not when floored to microsec will be considered the same. This is not a problem for Iceberg, because it only allows microsec precision in timestamp type. http://gerrit.cloudera.org:8080/#/c/24889/1/be/src/exprs/aggregate-functions-ir.cc File be/src/exprs/aggregate-functions-ir.cc: http://gerrit.cloudera.org:8080/#/c/24889/1/be/src/exprs/aggregate-functions-ir.cc@2791 PS1, Line 2791: sketch_ptr->update(micros); Could call into the same function? IMO this is complex enough to worth extracting. http://gerrit.cloudera.org:8080/#/c/24889/1/be/src/exprs/aggregate-functions-test.cc File be/src/exprs/aggregate-functions-test.cc: http://gerrit.cloudera.org:8080/#/c/24889/1/be/src/exprs/aggregate-functions-test.cc@209 PS1, Line 209: // Three distinct timestamps (0 s, 1 s, 2 s since epoch). > Ack Nanosec precision timestamps that need rounding could be also tested, both for negative and positive case. http://gerrit.cloudera.org:8080/#/c/24889/3/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/24889/3/testdata/workloads/functional-query/queries/QueryTest/datasketches-theta.test@57 PS3, Line 57: select ds_theta_estimate(ds_theta_sketch(d1)) from functional_parquet.decimal_tbl; There should be tests for multiple decimal sizes. -- To view, visit http://gerrit.cloudera.org:8080/24889 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I549a51ba96d0b9be2052a9350efe2096c1755816 Gerrit-Change-Number: 24889 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: Mon, 12 Oct 2026 09:41:36 +0000 Gerrit-HasComments: Yes
