You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/11/02 01:06:00 UTC

[jira] [Commented] (ASTERIXDB-2980) Add the option "CAST (DEFAULT NULL)" to CREATE INDEX statement

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

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

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

[ASTERIXDB-2980][*DB][IDX] Add the option "CAST (DEFAULT NULL)" to CREATE INDEX statement

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

Details:
Add the option "CAST (DEFAULT NULL)" to CREATE INDEX statement.

- when CAST (DEFAULT NULL) is specified in CREATE INDEX, use
  constructor types to cast the input type to the indexed field type as
  follows: CONSTRUCTOR(IF_MISSING(indexed_field, NULL)).
- in index bulk load path, cast only the indexed fields instead of the
  whole dataset record.
- allow CAST (DEFAULT NULL) only for b-trees.
- add tests.

Change-Id: I3a3ffd3735f1b311bd532dda955e08bf150ced31
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/13883
Reviewed-by: Ali Alsuliman <al...@gmail.com>
Reviewed-by: Dmitry Lychagin <dm...@couchbase.com>
Integration-Tests: Jenkins <je...@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>


> Add the option "CAST (DEFAULT NULL)" to CREATE INDEX statement
> --------------------------------------------------------------
>
>                 Key: ASTERIXDB-2980
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2980
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: *DB - AsterixDB, IDX - Indexes
>            Reporter: Ali Alsuliman
>            Assignee: Ali Alsuliman
>            Priority: Major
>             Fix For: 0.9.7
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)