Skip to content

[Bug] PPL raised xxx is supported only when plugins.calcite.enabled error when fallback happened #5060

Closed

Description

@ykmr1224

Even when Calcite is enabled (enabled by default in 3.3), it could raise xxx is supported only when plugins.calcite.enabled when it fallback to legacy engine.
It is confusing, and should raise original error raised from Calcite engine.

I see we already have logics to return Calcite engine error even when it fallback to legacy engine: https://github.com/opensearch-project/sql/blob/main/core/src/main/java/org/opensearch/sql/executor/QueryService.java#L177-L181
We might need to double check if this logic is working as expected.

Activity

  1. ykmr1224 commented on Feb 2, 2026

    @ykmr1224
    CollaboratorAuthor

    I see following case will not return Calcite Exception:

    • Calcite is enabled
    • Fallback is disabled
    • CalciteEngine throws CalciteUnsupportedException
    • Legacy engine throw exception

    Because isCalciteFallbackAllowed(null) (code) will become false, and else clause return exception from legacy engine.

  2. added
    error-experience
    PPL
    calcite
    on Feb 2, 2026
  3. self-assigned this
    on Feb 10, 2026
  4. added a commit that references this issue on Feb 10, 2026
    03d691e
  5. moved this from Not Started to Done in PPL Trackeron Feb 13, 2026
  6. added a commit that references this issue on Feb 13, 2026
    2e42e3f
  7. added a commit that references this issue on Feb 24, 2026
    ef94e4f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

PPLcalciteerror-experience

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions