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

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

Commit fe5217c432619957c15b4d5d1168393bee41f757 in impala's branch 
refs/heads/master from Arnab Karmakar
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=fe5217c43 ]

IMPALA-15201: Enable comparison operators and predicates for UUID type

Add support for comparison operators (=, !=, <, >, <=, >=, IS [NOT]
DISTINCT FROM) and predicates (IN, NOT IN, IS NULL, IS NOT NULL, BETWEEN)
on UUID columns in Iceberg tables. UuidCompatibility blocks all implicit
casts between UUID and other types, so predicates must use UUID-typed
expressions (e.g. column references or scalar subqueries) rather than
string literals.

Backend changes:
- Add UUID comparison operators using memcmp on 16-byte canonical
  representation. Comparison uses RFC 4122 byte ordering.

Frontend changes:
- Remove UUID guards from BinaryPredicate, InPredicate, IsNullPredicate
- Keep UuidCompatibility blocking both STRING->UUID and UUID->STRING
  implicit promotion
- Block explicit UUID<->STRING casts (deferred to IMPALA-15202)

Testing:
- Add positive tests for =, !=, range, IN, NOT IN, BETWEEN, JOIN, and
  null checks using scalar subqueries to supply UUID-typed values
- Add negative tests confirming string literals are rejected in
  predicates and explicit casts remain blocked

Change-Id: I0e8c4c631ccc25a5f2da3540c2d18cf9dba79fe9
Assisted-by: Composer 2.5
Reviewed-on: http://gerrit.cloudera.org:8080/24506
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> Add UUID cast functions and client formatting
> ---------------------------------------------
>
>                 Key: IMPALA-15202
>                 URL: https://issues.apache.org/jira/browse/IMPALA-15202
>             Project: IMPALA
>          Issue Type: Sub-task
>            Reporter: Arnab Karmakar
>            Assignee: Arnab Karmakar
>            Priority: Major
>
> Support explicit {{CAST}} to/from UUID and canonical string display in 
> HS2/query results.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to