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

[BUG] Null functions with struct field #3312

Open
currantw opened this issue Feb 7, 2025 · 0 comments
Open

[BUG] Null functions with struct field #3312

currantw opened this issue Feb 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@currantw
Copy link
Contributor

currantw commented Feb 7, 2025

What is the bug?

The functions isnull and isnotnull appear to throw an exception when applied to an object/struct field.

How can one reproduce the bug?

Input data:

root
{ "a": "x", "b": 0 }
{ "a": null, "b": 1 }
{ "a": "y", "b": null }
null

source=data | where isnull(root)
source=data | where isnotnull(root)

Exception:

{
  "error": {
    "reason": "Error occurred in OpenSearch engine: all shards failed",
    "details": "Shard[0]: java.lang.IllegalArgumentException: No field found for [root] in mapping\n\nFor more details, please send request for Json format to see the raw response from OpenSearch engine.",
    "type": "SearchPhaseExecutionException"
  },
  "status": 400
}

What is the expected behaviour?

Expected:

root
{ "a": "x", "b": 0 }
{ "a": null, "b": 1 }
{ "a": "y", "b": null }

What is your host/environment?

  • OS: iOS
  • Plugins: PPL

Do you have any screenshots?

Image

Do you have any additional context?

None.

@currantw currantw added bug Something isn't working untriaged labels Feb 7, 2025
@currantw currantw changed the title [BUG] Null functions with object field [BUG] Null functions with struct field Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants