Taewoo Kim created ASTERIXDB-2218:
-------------------------------------

             Summary: Enforcement of a secondary index does not work.
                 Key: ASTERIXDB-2218
                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2218
             Project: Apache AsterixDB
          Issue Type: Bug
            Reporter: Taewoo Kim


The enforced index does not check the field type when inserting a record. The 
following code work on the current master.

{code}
create type tempType if not exists as open {
    id: int64
};

create dataset tempDataset(tempType) primary key id;

create index tempIndex on tempDataset(val:int64?) enforced;

insert into tempDataset({"id":1,"val":64.79});
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to