[ 
https://issues.apache.org/jira/browse/IMPALA-10133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17190441#comment-17190441
 ] 

ASF subversion and git services commented on IMPALA-10133:
----------------------------------------------------------

Commit 99e5f5a8859c58641973bc84058eeb15502da96c in impala's branch 
refs/heads/master from Adam Tamas
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=99e5f5a ]

IMPALA-10133:Implement ds_hll_stringify function.

This function receives a string that is a serialized Apache DataSketches
HLL sketch and returns its stringified format.

A stringified format should look like and contains the following data:

select ds_hll_stringify(ds_hll_sketch(float_col)) from
functional_parquet.alltypestiny;
+--------------------------------------------+
| ds_hll_stringify(ds_hll_sketch(float_col)) |
+--------------------------------------------+
| ### HLL sketch summary:                    |
|   Log Config K   : 12                      |
|   Hll Target     : HLL_4                   |
|   Current Mode   : LIST                    |
|   LB             : 2                       |
|   Estimate       : 2                       |
|   UB             : 2.0001                  |
|   OutOfOrder flag: false                   |
|   Coupon count   : 2                       |
| ### End HLL sketch summary                 |
|                                            |
+--------------------------------------------+

Change-Id: I85dbf20b5114dd75c300eef0accabe90eac240a0
Reviewed-on: http://gerrit.cloudera.org:8080/16382
Reviewed-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com>


> Implement ds_hll_stringify()
> ----------------------------
>
>                 Key: IMPALA-10133
>                 URL: https://issues.apache.org/jira/browse/IMPALA-10133
>             Project: IMPALA
>          Issue Type: Sub-task
>            Reporter: Adam Tamas
>            Assignee: Adam Tamas
>            Priority: Major
>
> This function receives a string that is a serialized Apache DataSketches
> HLL sketch and returns its stringified format.
> A stringified format should look like and contains the following data:
> {code:java}
> (select ds_hll_stringify(ds_hll_sketch(i)) from t;)
> +----------------------------------------------------+
> |                        _c0                         |
> +----------------------------------------------------+
> | ### HLL SKETCH SUMMARY: 
>   Log Config K   : 12
>   Hll Target     : HLL_4
>   Current Mode   : LIST
>   Memory         : true
>   LB             : 1.0
>   Estimate       : 1.0
>   UB             : 1.000049929250618
>   OutOfOrder Flag: false
>   Coupon Count   : 1
>  |
> +----------------------------------------------------+
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org

Reply via email to