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

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

Commit 11bd6f64300c2fa9a710ce2beb74a4695b98e2c7 in asterixdb's branch 
refs/heads/master from Peeyush Gupta
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=11bd6f6430 ]

[ASTERIXDB-3302][COMP] Compilation error when creating index

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

Details:
Allow index creation on a field having a closed-type when there
type is provided in the index creation statement as long as
the type provided is same as their closed-type.

Change-Id: Ie662ce1276fa60493cf0a7623306cb19448a2133
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/17930
Integration-Tests: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Reviewed-by: Peeyush Gupta <[email protected]>
Reviewed-by: Ali Alsuliman <[email protected]>


> Compilation error when creating index with field type provided for field in 
> closed type 
> ----------------------------------------------------------------------------------------
>
>                 Key: ASTERIXDB-3302
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-3302
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: COMP - Compiler
>            Reporter: Peeyush Gupta
>            Priority: Major
>
> The following index creation fails with error Compilation error: Typed index 
> on 'name' field could be created only for open datatype
> {code:java}
> CREATE DATAVERSE test;
> USE test;
> CREATE TYPE t1 AS { id: int, name: string, phone:string };
> CREATE DATASET ds1(t1) primary key id;
> CREATE INDEX idx1 ON ds1(name: string); {code}
> Note that I have provided the same data type for name as in the type 
> information. We should allow index creation on field type having a 
> closed-type when there type is provided in the index creation statement as 
> long as the type provided is same as their closed-type.  



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

Reply via email to