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 |