[ https://issues.apache.org/jira/browse/ASTERIXDB-1493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15971771#comment-15971771 ]
ASF subversion and git services commented on ASTERIXDB-1493: ------------------------------------------------------------ Commit e383d5f72639e549fb3bbf65e8804ba358fdeed1 in asterixdb's branch refs/heads/master from [~idleft] [ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=e383d5f ] ASTERIXDB-1493 Enable AUUID Rule on Upsert Fix the bug that Upsert cannot use IntroduceAutogeneratedIDRule. Change-Id: I8e7a120e48e3a734639ae3680d0237d07270ac3b Reviewed-on: https://asterix-gerrit.ics.uci.edu/1686 Sonar-Qube: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenk...@fulliautomatix.ics.uci.edu> BAD: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Integration-Tests: Jenkins <jenk...@fulliautomatix.ics.uci.edu> Reviewed-by: Ian Maxon <ima...@apache.org> > Upsert won't insert the record with the autogenerated id > -------------------------------------------------------- > > Key: ASTERIXDB-1493 > URL: https://issues.apache.org/jira/browse/ASTERIXDB-1493 > Project: Apache AsterixDB > Issue Type: Bug > Components: Metadata, Storage > Environment: commit fd1d460da73397de9f44d7b098543f7897844794 > Date: Wed Jun 15 11:29:36 2016 -0400 > Reporter: Jianfeng Jia > Assignee: Xikui Wang > > AQL > {code} > use dataverse twitter > drop dataset twitter.ds_tweet_d41d8cd98f00b204e9800998ecf8427e if exists > create type autoType if not exists as open { > id: uuid > } > create dataset twitter.ds_tweet_d41d8cd98f00b204e9800998ecf8427e(autoType) if > not exists primary key id autogenerated; > upsert into dataset twitter.ds_tweet_d41d8cd98f00b204e9800998ecf8427e > ( [ { "fa": "x", "fb":"y"}, {"fa":"u", "fb":"w"}]) > {code} > error msg: > {code} > type mismatch: missing a required closed field id:uuid [IllegalStateException] > {code} > It works if using `insert`. -- This message was sent by Atlassian JIRA (v6.3.15#6346)