-
Notifications
You must be signed in to change notification settings - Fork 34
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] JSON arrays can not be queried as expected (return NULL or unsupported data type: JString(nested)) #750
Comments
@salyh |
@dai-chen @noCharger @penghuo can u plz look at this ? |
Presumably not. Currently I only code and test against OpenSearch based tables/datasets but, with regards to flatten, I can also setup a S3 based table and work with that. But in any case I think this issues needs to be solved because all PPL should at least work with OpenSearch. If there are limitations then at least they should be documented. Speaking of documentation: I don't see any quickstart docs for using this |
What is the bug?
While working on #669 I noticed that JSON arrays, indexed into OpenSearch, always return NULL when queried via spark. JSON objects and primitves are working as expected.
How can one reproduce the bug?
Steps to reproduce the behavior:
val dfp = spark.sql("source=dev.default.json"); dfp.show()
Here in the first three row no NULL is expected
If the projects field is mapped to ["nested" type](Here in the first three row no NULL is expected) like
then an error is thrown:
The text was updated successfully, but these errors were encountered: