asterixdb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Malarout, Namrata (398M-Affiliate)" <Namrata.Malar...@jpl.nasa.gov>
Subject Primary key in a nested document structure
Date Mon, 14 Sep 2015 20:43:10 GMT
Hi all,
The data I am working with has a nested structure. This is what my schema looks like:


drop dataverse TestL4 if exists;

create dataverse TestL4;

use dataverse TestL4;


create type type_dimensions as closed {

time: int32,

lat: int32,

lon: int32

}

create type attributes_tll as open {

long_name: string,

standard_name: string,

units: string,

valid_min: float,

valid_max: float,

axis: string,

comment: string

}

create type type_tll as open {

typee: string,

dimensions: {{string}},

attributes: [attributes_tll]

}

create type type_globattr as open {

title: string,

id: string,

uuid: string

}

create type type_var as open {

time: type_tll,

lat: type_tll,

lon: type_tll

}

create type GlobL4Type as open {

dimensions: [type_dimensions],

variables: [type_var],

global_attributes: [type_globattr]

}

Type GlobL4Type is the structure of the document. So I want to create a dataset based on it.
I would like to use ‘id’ present in type_globattr as the primary key for every document.
How can I do that?
Thanks in advance for the help.

Regards,
Namrata Malarout

Mime
View raw message