greptimedb icon indicating copy to clipboard operation
greptimedb copied to clipboard

feat: http api csv

Open zeroslope opened this issue 2 years ago • 0 comments

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

#577 add csv format support for /sql api.

For the format of the return value.

  1. first use query param "format=", optional values are json, csv
  2. second use Accept Header, optional values are Accept: application/json or Accept: application/csv
  3. If neither is available, the default value (csv) is used.

For stream, if query param "chunked=false" is passed, then streaming is not applicable, otherwise streaming is enabled by default.

Please explain IN DETAIL what the changes are in this PR and why they are needed:

  • Summarize your change (mandatory)
  • How does this PR work? Need a brief introduction for the changed logic (optional)
  • Describe clearly one logical change and avoid lazy messages (optional)
  • Describe any limitations of the current code (optional)

Checklist

  • [] I have written the necessary rustdoc comments.
  • [] I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

zeroslope avatar Nov 29 '22 14:11 zeroslope