Fucun Chu has uploaded this change for review. ( http://gerrit.cloudera.org:8080/16626
Change subject: IMPALA-10132 Implement ds_hll_estimate_bounds_as_string() function. ...................................................................... IMPALA-10132 Implement ds_hll_estimate_bounds_as_string() function. This function receives a string that is a serialized Apache DataSketches HLL sketch and returns estimate and bounds with the values separated with commas. The result is three values: estimate, lower bound and upper bound. Note, ds_hll_estimate_bounds() should return an Array of doubles as the result butwith that we have to wait for the complex type support. Until, we provide ds_kll_cdf_as_string() that can be deprecated once we have array support. Tracking Jira for returning complex types from functions is IMPALA-9520. Example: select ds_hll_estimate_bounds_as_string(ds_hll_sketch(float_col)) from functional_parquet.alltypestiny; +------------------------------------------------------------+ | ds_hll_estimate_bounds_as_string(ds_hll_sketch(float_col)) | +------------------------------------------------------------+ | 2,2,2.0002 | +------------------------------------------------------------+ Change-Id: I46bf8263e8fd3877a087b9cb6f0d1a2392bb9153 --- M be/src/exprs/datasketches-common.h M be/src/exprs/datasketches-functions-ir.cc M be/src/exprs/datasketches-functions.h M common/function-registry/impala_functions.py M testdata/workloads/functional-query/queries/QueryTest/datasketches-hll.test 5 files changed, 115 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/26/16626/1 -- To view, visit http://gerrit.cloudera.org:8080/16626 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I46bf8263e8fd3877a087b9cb6f0d1a2392bb9153 Gerrit-Change-Number: 16626 Gerrit-PatchSet: 1 Gerrit-Owner: Fucun Chu <chufu...@hotmail.com> Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com>