-
Notifications
You must be signed in to change notification settings - Fork 141
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
[BUG] SQL and PPL responses different types for the same things #1296
Comments
Some technical details. On response serialization
|
What is the bug?
PPL
returnsstring
data type for all string columns.SQL
returnstext
for text data andkeyword
for all rest.text
andkeyword
are not the same thing and a user should be able to distinguish them.How can one reproduce the bug?
Use sample data from integration tests, for example
bank
index.Check mapping for
gender
and forcity
:sql/integ-test/src/test/resources/indexDefinitions/bank_index_mapping.json
Lines 31 to 32 in a4f8066
sql/integ-test/src/test/resources/indexDefinitions/bank_index_mapping.json
Lines 19 to 20 in a4f8066
And then compare types reported by
PPL
SQL
What is the expected behavior?
Returned type should be same for
PPL
andSQL
. It should match index mapping for all columns given in index.What is your host/environment?
2.x
@ 662a938Do you have any additional context?
Related to #1038 and to opensearch-project/observability#1392
The text was updated successfully, but these errors were encountered: