Skip to content

Fix Cube adapter empty sections and {CUBE} syntax#16

Merged
nicosuave merged 1 commit intomainfrom
nicosuave/cube-adapter-fixes
Dec 29, 2025
Merged

Fix Cube adapter empty sections and {CUBE} syntax#16
nicosuave merged 1 commit intomainfrom
nicosuave/cube-adapter-fixes

Conversation

@nicosuave
Copy link
Copy Markdown
Member

Fixes issues with Cube adapter parsing:

  • Handle empty YAML sections (pre_aggregations, dimensions, etc.) that parse as None
  • Normalize Cube.js SQL syntax variants: ${CUBE}, {CUBE}, ${cube_name}, {cube_name} to {model}
  • Apply normalization consistently to dimension, measure, filter, and segment SQL
  • Add comprehensive edge case tests for empty sections and syntax variants

Resolves GitHub issue about TypeError when parsing Cube files with empty pre-aggregation sections and missing {CUBE} syntax support.

…ants

- Handle None from empty pre_aggregations, dimensions, measures, segments, joins, filters, indexes sections in YAML
- Normalize all Cube.js SQL syntax variants: ${CUBE}, {CUBE}, ${cube_name}, {cube_name} to {model}
- Apply normalization to dimension, measure, filter, and segment SQL
- Add comprehensive tests for edge cases including empty sections and syntax variants
@nicosuave nicosuave force-pushed the nicosuave/cube-adapter-fixes branch from b0013fa to 7529919 Compare December 29, 2025 17:03
@nicosuave nicosuave merged commit e14769d into main Dec 29, 2025
20 checks passed
@nicosuave nicosuave deleted the nicosuave/cube-adapter-fixes branch December 29, 2025 17:22
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