[
https://issues.apache.org/jira/browse/ASTERIXDB-3536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17934035#comment-17934035
]
ASF subversion and git services commented on ASTERIXDB-3536:
------------------------------------------------------------
Commit 249e0baad2e9c9a0fb94095e8f090541f72d74da in asterixdb's branch
refs/heads/master from Ali Alsuliman
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=249e0baad2 ]
[ASTERIXDB-3536][COMP] Pass heterogeneous index flag when validating fields
types
- user model changes: no
- storage format changes: no
- interface changes: no
Ext-ref: MB-27845
Change-Id: Icab29b7c2c530f7e2a0ac01ca923d1cf92bed008
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/19492
Integration-Tests: Jenkins <[email protected]>
Reviewed-by: Ali Alsuliman <[email protected]>
Reviewed-by: Murtadha Hubail <[email protected]>
Tested-by: Jenkins <[email protected]>
> Adding support for heterogeneous index
> --------------------------------------
>
> Key: ASTERIXDB-3536
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-3536
> Project: Apache AsterixDB
> Issue Type: Improvement
> Components: COMP - Compiler
> Reporter: shahrzad shirazi
> Priority: Minor
> Labels: triaged
>
> A Heterogeneous Index allows creating an index on a field without specifying
> its type. This means the field’s type no longer needs to be defined in the
> data type or the index creation DDL.
> Previously, creating a secondary index required the field's type to be
> defined either in the data type or explicitly in the index DDL, making it
> impossible to index heterogeneous fields.
>
> example:
> {code:java}
> CREATE TYPE UserType AS { userId : int};
> CREATE DATASET UserTypes(UserType) primary key userId;
> // Creating a heterogeneous index on the field age
> CREATE Index idx_user_age on UserTypes(age);{code}
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)