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

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

Commit 242356e2b25c786a15bb3503acac0a7559202f9d in impala's branch 
refs/heads/master from Peter Rozsa
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=242356e2b2 ]

IMPALA-15628: [DOCS] DataSketches functions return BINARY

IMPALA-9821 changed the DataSketches functions to return and accept
BINARY instead of STRING. The functions had no documentation apart from
the incompatible change note.

This patch adds impala_datasketches_functions.xml, a new page for the
ds_hll_*, ds_cpc_*, ds_theta_* and ds_kll_* functions. It has one entry
per function, in separate sections for the aggregate and the scalar
functions, and covers sketches stored in STRING columns and sharing
sketches with Hive.

The page is registered in impala.ditamap and impala_keydefs.ditamap,
and linked from the Impala 5.0 entry in impala_incompatible_changes.xml.
impala_functions.xml links to the page and lists the functions in its
alphabetical index.

Testing:
 - Built plain-html, asf-site-html and pdf docs without errors.
 - Ran the examples on a minicluster.

Change-Id: I70001a77c10700b9f887a78edbbe2b4eb7d26a19
Assisted-by: Claude Fable 5.2 (Claude Code)
Reviewed-on: https://gerrit.cloudera.org/25438
Tested-by: Impala Public Jenkins <[email protected]>
Reviewed-by: Mihaly Szjatinya <[email protected]>
Reviewed-by: Noemi Pap-Takacs <[email protected]>


> Rewrite ds_hll_sketch() and ds_hll_union() and other datasketch generating 
> functions to return Binary
> -----------------------------------------------------------------------------------------------------
>
>                 Key: IMPALA-9821
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9821
>             Project: IMPALA
>          Issue Type: New Feature
>          Components: Backend
>            Reporter: Gabor Kaszab
>            Assignee: Mihaly Szjatinya
>            Priority: Blocker
>             Fix For: Impala 5.0.0
>
>
> Until Binary implementation is ongoing ds_hll_sketch() and ds_hll_union() 
> functions return serialized sketches in String format. Once Binary is 
> available in Impala these can return the serialized sketches in Binary format.
> Currently when sketches are written by Hive as BINARY to ORC table and this 
> table is loaded to Impala where the sketch columns are STRINGs then we get an 
> error
> {code:java}
> ERROR: Type mismatch: table column STRING is map to column binary in ORC file
> {code}
> Interestingly the works with Parquet format.
> Once we have binary support make sure to add coverage for ORC table where the 
> table is created and populated by Hive and read for estimating by Impala.
> UPDATE: since BINARY type support was added in IMPALA-9482, the error above 
> is not reproducable.
> Currently (2026 September) what remains is the incompatibility between 
> datasketches function signatures, as Impala uses STRING in places where Hive 
> used BINARY.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to