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

ASF subversion and git services commented on ASTERIXDB-3622:
------------------------------------------------------------

Commit 6c4196f6b213e3e096736bd0556768a7ac4b8d37 in asterixdb's branch 
refs/heads/master from Ali Alsuliman
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=6c4196f6b2 ]

[ASTERIXDB-3622][COMP] Cast complex types to ANY for heterogeneous index

- user model changes: no
- storage format changes: no
- interface changes: no

Details:
Since heterogeneous indexes use ANY as a type for their keys,
ensure complex types values are cast to ANY (fully open format)
when searching or storing values in the index.

Ext-ref: MB-67047

Change-Id: I99f46564bc0879f2a82b0cd7dfbbd95132be7512
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/19877
Integration-Tests: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Reviewed-by: Murtadha Hubail <[email protected]>
Reviewed-by: Ali Alsuliman <[email protected]>


> Complex type values need to be cast when used with heterogenous indexes
> -----------------------------------------------------------------------
>
>                 Key: ASTERIXDB-3622
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-3622
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: COMP - Compiler
>            Reporter: Ali Alsuliman
>            Assignee: Ali Alsuliman
>            Priority: Major
>              Labels: triaged
>
> Heterogeneous indexes use ANY as a type for their keys. When they are 
> searched, the comparator used is of type ANY. Therefore, the values used for 
> searching need to be cast to type ANY. This is to ensure that complex types 
> (records, arrays, multisets) are of type ANY (the fully open format) so that 
> the comparator can interpret their values. Also, when storing the keys in 
> heterogenous indexes, the keys also need to be cast to type ANY.



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

Reply via email to