Description
I've been informed that the analtyics server has implemented option to customize query results, but decided to pass it though the HTTP headers.
I'd like to inform analytics team, that at the moment, SDKs consider HTTP only as a transport protocol, pay no or little attention to things like headers and the status codes. So far everything has been encoded in JSON payloads.
For example, we allow our users to pass free form parameters using "raw()" interface on the query options, which allows them to use newer server versions, with older SDKs. But we don't have anything like that for the headers, so one cannot pass parameters like this using regular AnalyticsQuery API:
Accept: application/json; charset=UTF-8;lossless-adm=true
|
We assume that SDK will only implement/support public features, that eventually will have their place in Server REST API documentation. This feature looks like Asterix-related, and probably will remain undocumented private API.
So the questions in this ticket:
- Is this Lossless-ADM formatter public API?
- Is Analytics service going to continue use HTTP protocol parts for the API?
The feature has been implemented here: https://github.com/couchbase/asterixdb/commit/26fb94c404692db7d93001de02e507ba9db00b65