blob: 248149f35ba1a95fed71da4f041aaa407fcfa872 [file] [log] [blame]
drop dataverse test if exists;
create dataverse test;
use dataverse test;
create type SpatialType as open {
id: int32,
point: point,
point3d: point3d,
line: line,
polygon: polygon,
circle: circle
}
create external dataset Spatial(SpatialType)
using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter"
(("path"="nc1://data/nontagged/spatialData.json"),("format"="adm"));
write output to nc1:"rttest/scan_spatial_types_01.adm";
for $a in dataset('Spatial')
return $a