Skip to content

[DOC] Add examples of achieving coalesce in <3 versions of OS #4196

Open

Description

@earthling-shruti

What do you want to do?

  • Request a change to existing documentation
  • Add new documentation
  • Report a technical problem with the documentation
  • Other

Tell us about your request. Provide a summary of the request.
coalesce was introduced in OS 3. There is no documentation for how to coalesce fields in older versions of OS. Here is one workaround, which coalesces two status code fields -

ifnull(cast(attributes.http.response.status_code as int), ifnull(cast(attributes.http.status_code as int),  -1))

Version: List the OpenSearch version to which this issue applies, e.g. 2.14, 2.12--2.14, or all.
<3

What other resources are available? Provide links to related issues, POCs, steps for testing, etc.

Activity

  1. added
    documentation
    on Sep 2, 2025
  2. added
    PPL
    and removed on Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    PPLdocumentation

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions