Skip to content

[FEATURE] Support field aliases that target text multi-fields in SQL/PPL #5632

Description

@mengweieric

Problem
A field alias whose path points to a text multi-field (e.g. alias title_rawtitle.raw, where title is text with fields.raw as keyword) cannot be resolved by SQL/PPL. #5535/#5536 handled the resulting NullPointerException by returning FIELD_NOT_FOUND, but the alias pattern itself is still unsupported.

Request
Resolve aliases whose target is a text multi-field, so SELECT title_raw FROM index returns the sub-field value — consistent with how OpenSearch core resolves these aliases in native search.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions