Skip to content

Implement native function of str_to_map #2154

@weimingdiit

Description

@weimingdiit

Describe
str_to_map(text[, pairDelim[, keyValueDelim]]) is not supported in Auron’s native execution path, so queries using it fall back instead of being executed natively.

Describe the solution you'd like
Add native support for Spark str_to_map(...) through the extension-function path.

The implementation should keep Spark semantics aligned:

  • split text into key/value pairs using delimiters
  • use default delimiters , for pairDelim and : for keyValueDelim
  • treat both pairDelim and keyValueDelim as regular expressions
  • preserve Spark-compatible parsing and null behavior
  • add regression tests to verify semantic consistency with Spark

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions