asterixdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Maxon <ima...@uci.edu>
Subject Re: Parsing "path" expression from AQL
Date Tue, 16 Jun 2015 18:05:29 GMT
Oh, how is it done though? (For other folks that might be curious)

-Ian

On Mon, Jun 15, 2015 at 4:58 PM, Heri Ramampiaro <heri@idi.ntnu.no> wrote:
> Sorry, forget my previous email. I found out how it is done:-)
>
> Cheers,
> -heri
>
>
>> On Jun 15, 2015, at 4:23 PM, Heri Ramampiaro <heri@ntnu.no> wrote:
>>
>> I am trying to implement a remove record field function that also can
handle
>> nested fields.
>>
>> E.g.
>> let $r := {
>> "id": "2",
>> "address": {
>> "street": "21 Orlando ct.",
>> "city": "Irvine",
>> "state": "CA"
>> }
>> "related": ["VXQuery", "AQL"]
>> }
>> return remove-field($r, [“address.state”]);
>>
>> Expected result:
>> [
>> {
>> "id": "2",
>> "address": {
>> "street": "21 Orlando ct.",
>> "city": "Irvine"
>> }
>> "related": ["VXQuery", "AQL"]
>> }
>> ]
>>
>> My question is how is the parser implemented to access nested field
names?
>> (Or, where do I find the API for this?)
>>
>> Thank you.
>>
>> Best,
>> -heri
>>
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message