[
https://issues.apache.org/jira/browse/ASTERIXDB-3323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17793100#comment-17793100
]
ASF subversion and git services commented on ASTERIXDB-3323:
------------------------------------------------------------
Commit 62578ad6659762f5e7fda13421abe9c38cae3605 in asterixdb's branch
refs/heads/master from Peeyush Gupta
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=62578ad665 ]
[ASTERIXDB-3323][COMP] Array index bulkload not indexing all values
- user model changes: no
- storage format changes: no
- interface changes: no
Change-Id: Ifc936ae867e90fff023f89ef2d21006e2e4f895d
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/17989
Reviewed-by: Ali Alsuliman <[email protected]>
Integration-Tests: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
> array index bulkload not indexing all values
> --------------------------------------------
>
> Key: ASTERIXDB-3323
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-3323
> Project: Apache AsterixDB
> Issue Type: Bug
> Components: COMP - Compiler
> Reporter: Peeyush Gupta
> Assignee: Peeyush Gupta
> Priority: Major
> Labels: triaged
>
> The following example shows that array index has invalid entries when
> documents has an indexed field of a different type than the one used to
> create the index.
> {code:java}
> drop dataverse test if exists;
> create dataverse test;
> use test;
> CREATE TYPE dsType AS OPEN {id:int};
> CREATE DATASET ds1(dsType) primary key id;
> UPSERT INTO ds1 {"id": 5, "a": ["hello"], "b": [{"x":1}, {"x":"aa"}]};
> CREATE INDEX i2 ON ds1(UNNEST b SELECT x : int) EXCLUDE UNKNOWN KEY; {code}
> {code:java}
> SET `import-private-functions` `true`;
> FROM DUMP_INDEX("test", "ds1", "i2") AS v
> SELECT VALUE v
> ORDER BY v.values; {code}
> The output is empty instead of indexing (1, 5)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)