Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Support raw OpenSearch output in JSON format in V2 engine #1317

Open
acarbonetto opened this issue Feb 2, 2023 · 0 comments
Open
Labels
enhancement New feature or request new-engine-gap

Comments

@acarbonetto
Copy link
Collaborator

acarbonetto commented Feb 2, 2023

Is your feature request related to a problem?
Several IT tests only run against Legacy engine because the V2 engine does not support JSON output format.

Update: Several IT test use the painless sprint to process in-memory requests that are not easily inserted into the raw JSON output in V2/new engine because V2/new engine doesn't support passing painless script calls.

A proposal to solve this will be included in #1450

What solution would you like?
Various output formats are supported by the SQL engine, including RAW, CSV, JSON, and JDBC. However, only JSON format is not supported by the V2 engine. Whenever json format is provided, the system automatically falls back to the legacy engine. This means V2 engine support (such as SELECT 1) functions cannot return json format, but does work for JDBC, RAW, and CSV.

curl --location --request POST 'http://localhost:9200/_plugins/_sql?format=json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "query": "SELECT 1"
}'

What alternatives have you considered?
JSON format output is only supported by the legacy engine.

Do you have any additional context?
Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new-engine-gap
Projects
None yet
Development

No branches or pull requests

3 participants