blob: a5ac400c90fb4c4128d4255401c19168783bbe50 [file] [log] [blame]
/*
* Description : Tests whether a conflict between an open and closed field name are detected
* Expected Result: An error reporting that there is a duplicate field name "name"
* Author: zheilbron
*/
drop dataverse test if exists;
create dataverse test;
use dataverse test;
create type opentype as open {
id:int32,
fname:string
}
create dataset testds(opentype) primary key id;
insert into dataset testds({'id': 1, 'fname': "name"});
for $x in dataset('testds')
return {$x.fname: "smith", lowercase("NAME"): "john"}