You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Query workbench PPL 'parse' syntax doesn't work on nested/non-single line field values #3206
I think there's a problem with your match query: .+(?<name>.+) won't match anything for name. The .+ match is a wildcard matcher that will pick up everything leaving nothing to put into the name field. According to the screenshot, name is returning empty string results (I believe that's what's going on).
Depending on your data, you can try and include a pattern that matches more than one variable in the field.
@acarbonetto it looks that way since I just copied the unparsed values. it looks like a table (unsure if it's JSON or something else) that there's set of fields and values (see screenshot). The complete values appear when I hover the mouse or copy them.
@acarbonetto it looks that way since I just copied the unparsed values. it looks like a table (unsure if it's JSON or something else) that there's set of fields and values (see screenshot). The complete values appear when I hover the mouse or copy them.
@opensearch1 I can confirm indeed the hover is expected behaviour in the case of displaying nested field, similar to fields geo, event and machine from the sample dataset provided by OpenSearch out of the box.
In this particular case, would you mind to share the query along with the expected pattern you would like to achieve under the parse command but failed to do so?
Also in the case of Bad request, there should be a Java exception being thrown in the backend, which would be great if you can share such information, if policy is allowed.
Activity
YANG-DB commentedon Dec 18, 2024
Thanks for bringing this to our attention.
acarbonetto commentedon Dec 18, 2024
I was able to run this query using
parseon nested values, to get this result:The parse command doesn't work against multi-values, and results in an error:
acarbonetto commentedon Dec 18, 2024
We could be more explicit about how the syntax works in the documentation: https://github.com/opensearch-project/sql/blob/main/docs/user/ppl/cmd/parse.rst
Also, add a limitation that multi-valued fields result in an error.
YANG-DB commentedon Dec 18, 2024
@acarbonetto I've asked for details on the version this issue was discovered
acarbonetto commentedon Dec 18, 2024
I think there's a problem with your match query:
.+(?<name>.+)won't match anything forname. The.+match is a wildcard matcher that will pick up everything leaving nothing to put into thenamefield. According to the screenshot,nameis returning empty string results (I believe that's what's going on).Depending on your data, you can try and include a pattern that matches more than one variable in the field.
opensearch1 commentedon Dec 19, 2024
Hi,
This is being used in OpenSearch 2.15 under query workbench.
opensearch1 commentedon Dec 20, 2024
@acarbonetto it looks that way since I just copied the unparsed values. it looks like a table (unsure if it's JSON or something else) that there's set of fields and values (see screenshot). The complete values appear when I hover the mouse or copy them.

andy-k-improving commentedon Jan 15, 2025
@opensearch1 I can confirm indeed the
hoveris expected behaviour in the case of displaying nested field, similar to fieldsgeo,eventandmachinefrom the sample dataset provided by OpenSearch out of the box.In this particular case, would you mind to share the query along with the expected pattern you would like to achieve under the
parsecommand but failed to do so?Also in the case of
Bad request, there should be a Java exception being thrown in the backend, which would be great if you can share such information, if policy is allowed.songkant-aws commentedon Jun 27, 2025
Looking into it
LantaoJin commentedon Jun 27, 2025
For multi-value, PPL in v3, we have
fattenandexpandfunctions to handle them.Fix PPL parse syntax for multi-line field values (opensearch-project#…
qianheng-aws commentedon Apr 10, 2026
Closing as duplicate of #5333 — consolidated umbrella issue for array values not treated as atomic values.