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] Retrieve the original raw document via SQL (_source column) #1918

Open
parked-toes opened this issue Aug 1, 2023 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@parked-toes
Copy link

Is your feature request related to a problem?
I need to retrieve the whole document, including arrays. When the result format is set to jdbc opensearch returns only 1st item from arrays. Using json format is not an option for me because a 3rd party driver I use, understands the jdbc format only.

What solution would you like?
Add support for _source meta column in column list expression part of SELECT statement.
e.g. SELECT _source, column1, column2 FROM ...

The _source column does not have be allowed in WHERE clause and functions.

Do you have any additional context?
Another metadata fields have been already added in this pull request:
#1456

@parked-toes parked-toes added enhancement New feature or request untriaged labels Aug 1, 2023
@acarbonetto
Copy link
Collaborator

Returning the _source field in it's raw state is possible, but I see this as overkill for your problem.
Would adding array support like #1300 be sufficient for your case?

@parked-toes
Copy link
Author

Yes, that would be sufficient

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

No branches or pull requests

3 participants