Any valid ADM (asterix data model) instance can be a result row.
ADM: https://ci.apache.org/projects/asterixdb/aql/datamodel.html

A single curly bracket means a record constructor.  A record consists of
fields, where each field is an name-value pair.
Therefore,
{
    [1,2,3],
    [2,3,4],
    [5,6,7]
}
cannot be a valid result.

But you are able to get
    [1,2,3],
    [2,3,4],
    [5,6,7]

by running the following query:

for $x in [
    [1,2,3],
    [2,3,4],
    [5,6,7]
]
return $x;

Let me know if you have more questions.

Best,
Yingyi






On Thu, Jun 16, 2016 at 10:23 AM, Kaveen Rodrigo <[email protected]>
wrote:

> Hey Yingyi,
>
> I fixed that issue, didn't update the VPS yet.  One question Can there be
> results which returns arrays?
>
> for example
> {
>     [1,2,3],
>     [2,3,4],
>     [5,6,7]
> }
>
> if that's so, if you have some time can you give me an AQl query which
> will produce something like that.
>
> thanks in advance,
> Kaveen
>
> On 16 June 2016 at 22:28, Yingyi Bu <[email protected]> wrote:
>
> > Awesome!  Thanks, Kaveen!
> >
> > Best,
> > Yingyi
> >
> > On Thu, Jun 16, 2016 at 9:56 AM, Kaveen Rodrigo <[email protected]
> >
> > wrote:
> >
> > > Yikes, Thanks Yingyi,
> > >
> > > I never expected the results array to contain values, I'll get on it
> > >
> > > On 16 June 2016 at 21:48, Yingyi Bu <[email protected]> wrote:
> > >
> > > > Very cool!!
> > > > It seems that there is an assumption that returned results are
> records?
> > > >
> > > > For example,  you can try the following query:
> > > > Q1:
> > > > for $m  in dataset Metadata.Dataset
> > > > return $m.DatasetName;
> > > >
> > > > Q2:
> > > > 1+1;
> > > >
> > > > Best,
> > > > Yingyi
> > > >
> > > >
> > > > On Thu, Jun 16, 2016 at 12:20 AM, Kaveen Rodrigo <
> > > [email protected]>
> > > > wrote:
> > > >
> > > > > Hello all,
> > > > >
> > > > > I have been working on the WebUI for AsterixDB during the last
> month,
> > > > and I
> > > > > would like to get some input from you guys. There are a couple of
> > > visual
> > > > > tweaks to be applied but the base features are pretty much done.
> > > > >
> > > > > http://173.82.2.197:19006/
> > > > >
> > > > > please excuse the slow performance of my docker instance, If you
> want
> > > to
> > > > > check this out locally, It's available here
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> https://github.com/KaveenR/incubator-asterixdb/commits/asterixdb-1375-static-servlet
> > > > >
> > > > > cheers,
> > > > > Kaveen Rodrigo
> > > > >
> > > > > --
> > > > > Kaveen Rodrigo
> > > > > Personal Website - (lifeofenigma.com)
> > > > >
> > > > >
> > > > > Software Engineering Undergraduate,
> > > > > Informatics Institute of Technology Sri Lanka (Affiliated with
> > > University
> > > > > of Westminster, UK)
> > > > >
> > > > >
> > > > > *Contact Information*
> > > > >
> > > > > *Mobile* +94779684740
> > > > >
> > > > > *E-Mail*  [email protected] | [email protected]
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Kaveen Rodrigo
> > > Personal Website - (lifeofenigma.com)
> > >
> > >
> > > Software Engineering Undergraduate,
> > > Informatics Institute of Technology Sri Lanka (Affiliated with
> University
> > > of Westminster, UK)
> > >
> > >
> > > *Contact Information*
> > >
> > > *Mobile* +94779684740
> > >
> > > *E-Mail*  [email protected] | [email protected]
> > >
> >
>
>
>
> --
> Kaveen Rodrigo
> Personal Website - (lifeofenigma.com)
>
>
> Software Engineering Undergraduate,
> Informatics Institute of Technology Sri Lanka (Affiliated with University
> of Westminster, UK)
>
>
> *Contact Information*
>
> *Mobile* +94779684740
>
> *E-Mail*  [email protected] | [email protected]
>

Reply via email to