Skip to content

[ES|QL] RERANK command - Prevent unnamed fields #126603

Closed
@afoucret

Description

@afoucret

Acceptance criteria:

  • We should enforce the usage of an identifier for fields used in the RERANK command.

The following command:

FROM movies METADATA _score
  | WHERE QSTR("star wars")
  | RERANK "star wars" ON title, SUBSTRING(overview, 0, 100), actors WITH rerankerInferenceId

should fail because no name has been provided for the SUBSTRING expression.

The correct way to write it is:

FROM movies METADATA _score
  | WHERE QSTR("star wars")
  | RERANK "star wars" ON title, short_overview=SUBSTRING(overview, 0, 100), actors WITH rerankerInferenceId

Metadata

Metadata

Labels

:Analytics/ES|QLAKA ESQLTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions