Skip to content

fix(query): drop emptyCube.emptyKey order placeholder before sending#38

Merged
acmeguy merged 1 commit into
masterfrom
fix/emptycube-order-placeholder
Jul 7, 2026
Merged

fix(query): drop emptyCube.emptyKey order placeholder before sending#38
acmeguy merged 1 commit into
masterfrom
fix/emptycube-order-placeholder

Conversation

@acmeguy

@acmeguy acmeguy commented Jul 7, 2026

Copy link
Copy Markdown

The query builder emits emptyCube.emptyKey as a "no order" sentinel; normalizeOrders forwarded it as order: {"emptyCube.emptyKey":"asc"}. Legacy Cube ignored it; the Tesseract planner rejects it (Cannot resolve: emptyCube) → 500. Filters the placeholder in both normalizeOrders copies (REST-API + export). Pairs with the backend guard in synmetrix#63.

The query builder emits `emptyCube.emptyKey` as a "no order selected"
sentinel in the order state. normalizeOrders passed it straight into the
Cube query as `order: {"emptyCube.emptyKey":"asc"}`. The legacy Cube
planner silently ignored the unresolvable member; the Tesseract planner
rejects it ("Cannot resolve: emptyCube") and 500s the query. Filter the
placeholder out in normalizeOrders (both the REST-API and export paths).
@acmeguy acmeguy merged commit 99a262c into master Jul 7, 2026
@acmeguy acmeguy deleted the fix/emptycube-order-placeholder branch July 7, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant