Clone Tools
  • last updated 22 mins ago
Constraints: committers
Constraints: files
Constraints: dates
[ASTERIXDB-2672][API] Change the valid values for "format" request parameter

- user model changes: yes

- storage format changes: no

- interface changes: no


- Allowed values for "format" request parameter: json, csv, adm.

- Recognizable format values in "Accept":






Test framework changes:

- ResultExtractor: if the OutputFormat is json/lossless-json, print the "result"

field of the response similar to how adm would be printed, one json value

per line (and using same spacing).

- Changed some queries that use "EXPLAIN SELECT..." and specify OutputFormat as JSON.

The queries extension is ".plans.sqlpp". "param optimized-logical-plan:string=true"

is specified in those queries to print the logical plan in the "plans" field of

the response.

- added "// compareunorderedarray=true" for test quries that use .regexjson to compare

one json value against another where the order of elements in a json array is not


- TestExecutor: OutputFormat.LOSSLESS_JSON & OutputFormat.CSV_HEADER formats are set

in the "Accept". Otherwise, the desired format is set in the "format" request

parameter as usual.

- TestHelper: changed "equalJson()" to allow comparing json array in two modes.

- Removed some test cases that used to set mime types in the "format" request parameter

since now it's not allowed to do so.

Change-Id: Ie3c7a35446322c2d97679e7e724b9778e2a4ba83


Contrib: Jenkins <>

Tested-by: Jenkins <>

Integration-Tests: Jenkins <>

Reviewed-by: Ali Alsuliman <>

Reviewed-by: Murtadha Hubail <>

  1. … 32 more files in changeset.
[NO ISSUE] Remove un-neccessary Jackson printer

During the org.json change we needed this to avoid

changing many test files but it is not really worth

maintaining anymore.

Change-Id: I465d4f0d4352f2bd7eb3ec40062a998de578d8c6


Reviewed-by: Michael Blow <>

Integration-Tests: Michael Blow <>

Tested-by: Michael Blow <>

  1. … 5 more files in changeset.