Clone Tools
  • last updated 11 mins ago
Constraints: committers
Constraints: files
Constraints: dates
ASTERIXDB-976: CSV support for all basic types

Implements date/time, spatial, UUID, and hexbinary types for CSV output.

Spatial output is "best we can do" - a double-quoted string containing the

"clean JSON" representation of the value. Interval remains unsupported.

Also fixes a few import errors in the clean JSON implementation.

Change-Id: I7a515efd2bbf25895537413b45eb0992484c7412


Tested-by: Jenkins <>

Reviewed-by: Till Westmann <>

Reviewed-by: Ian Maxon <>

  1. … 24 more files in changeset.
Several CSV, API, HTTP API, and Web interface improvements.

- APIFramework: internal refactoring to consolidate output PrintWriter,

OutputFormat, and all output flags into SessionConfig

- APIFramework: "HTML" is now a flag, rather than an OutputFormat

- HTTP API: Output format can be select via query parameter in

addition to HTTP Accept header

- CSV: default output is now without header, to improve roundtripping

- CSV: header can be requested via Accept header or "header" query


- Web interface: Added ability to select output format (JSON, CSV or ADM)

Change-Id: I91398bd30dbd6f3b1f69eb51fbf201010d0e5d93


Reviewed-by: Chris Hillery <>

Tested-by: Chris Hillery <>

  1. … 16 more files in changeset.
Issue 548: Initial implementation of CSV output method.

Can be selected via the HTTP interface by setting the Accept: header to


Displays strings, numerics, booleans, and a couple duration types. Detects

situations that cannot be respresented as CSV (list values, nested records)

and throws an exception.

Introduces "outputRecordType" set option to define a fixed RecordType that

all results will be coerced to, to ensure consistent CSV output.

Added test support for CSV output, with one test case for now.

Change-Id: Ib53da6b3c69e38095bdc684b0e8cd53b9f4b1543


Tested-by: Jenkins <>

Reviewed-by: Till Westmann <>

  1. … 72 more files in changeset.