[ 
https://issues.apache.org/jira/browse/ASTERIXDB-3263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wail Y. Alkowaileet reassigned ASTERIXDB-3263:
----------------------------------------------

    Assignee: Peeyush Gupta

> Incorrect data inserted when optional field in closed type
> ----------------------------------------------------------
>
>                 Key: ASTERIXDB-3263
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-3263
>             Project: Apache AsterixDB
>          Issue Type: Bug
>    Affects Versions: 0.9.8, 0.9.9
>            Reporter: Peeyush Gupta
>            Assignee: Peeyush Gupta
>            Priority: Major
>              Labels: triaged
>
> When an Insert/Upsert is run with a list of records on a dataset with a 
> closed type containing an optional field, data is inserted as al nulls.
> {code:java}
> create type testtype01 as
>  closed {
>   id : string,
>   name : string?
> };
> create  dataset testds01(testtype01) primary key id;
> insert into testds01([{"id":"1", "name":"John"}]);
> select * from testds01;
> ----
> { "testds01": { "id": null, "name": null } } {code}



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

Reply via email to