You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@asterixdb.apache.org by Ian Maxon <im...@uci.edu> on 2015/08/22 05:04:14 UTC
Re: Can I get result in AMD format, instead of json, from HTTP API request?
Hi Siripen,
Yes, it is possible. Just request with a header containing "Accept:
application/x-adm". Keep in mind though that if you try putting the output
of that through a JSON parser, " interesting" things may happen...
Thanks,
-Ian
On Aug 21, 2015 7:30 PM, "Siripen Pongpaichet" <sp...@gmail.com> wrote:
> Dear Ian,
>
> Some fields in my dataset are in "Interval" type. The printer for "interval" type in "json" format is not implemented yet.
>
> I got following error
> Caused by: edu.uci.ics.asterix.common.exceptions.AsterixException: java.lang.IllegalStateException: edu.uci.ics.hyracks.algebricks.common.exceptions.NotImplementedException: No printer for type INTERVAL\n\tat edu.uci.ics.asterix.om.pointables.printer.json.APrintVisitor.visit(APrintVisitor.java:91)\n\tat
>
>
> I used the same query over the Asterix Interface, and the result in ADM format was returned correctly.
>
> Is it possible to retrieve "ADM" format over the HTTP request? Any other options?
>
> Thank you very much
>
>
> Best regards,
>
> Siripen
>
> --
>
> Siripen Pongpaichet
> University of California, Irvine
>
>