Skip to content

[BUG] json function return type is undefined #3336

@penghuo

Description

@penghuo

What is the bug?

  • json The function's return type is undefined, which presents two issues:
    • Undefined type is not a valid PPL data type.
    • It is inconsistent with the Spark-PPL JSON function, which returns a string.

How can one reproduce the bug?
https://github.com/Bit-Quill/opensearch-project-sql/blob/main/integ-test/src/test/java/org/opensearch/sql/ppl/JsonFunctionsIT.java#L73

What is the expected behavior?
align with Spark PPL, Return type is String

Metadata

Metadata

Assignees

No one assigned

    Labels

    PPLPiped processing languagebugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions