-
Notifications
You must be signed in to change notification settings - Fork 33
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] PPL can't extract value from map when the key is nested field alike #565
Comments
Hi @A-Gray-Cat
Please advise... |
Hello, the schema of unmapped is actually Here's the raw logs of of an unmapped field queried using Athena:
|
closing this issue with similar cause for the closing this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the bug?
The unmapped field is a map structure which looks like this
To retrieve values, SQL is able to do it by select
unmapped['userIdentity.sessioncontext.sessionIssuer.type']
. However, PPL isn't able to do the same. When the key has more than one level of depth, it will error out.How can one reproduce the bug?
Steps to reproduce the behavior:
It will throw this error:
However, if we only query for:
This will run successfully.
Please note,
userIdentity.sessioncontext.sessionIssuer.type
isn't a JSON path, but a "key" string. Theunmapped
field is a map structure with key value pairs, but the key is like a nested JSON path.What is the expected behavior?
Correct value is extracted.
What is your host/environment?
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: