Skip to content

feat(cubejs): add support for ClickHouse ALIAS columns in cube SQL ge…#47

Merged
akshaykumar2505 merged 1 commit intomainfrom
feature/smart-generate-alias
Apr 23, 2026
Merged

feat(cubejs): add support for ClickHouse ALIAS columns in cube SQL ge…#47
akshaykumar2505 merged 1 commit intomainfrom
feature/smart-generate-alias

Conversation

@akshaykumar2505
Copy link
Copy Markdown
Member

…neration

  • Introduced fetchClickHouseAliasColumnNames utility to retrieve ALIAS column names from ClickHouse.
  • Updated buildCubeSource and buildRawCube functions to include ALIAS columns in the generated SQL after SELECT *.
  • Enhanced yamlGenerator to emit cube-level SQL with proper handling of backticks for ClickHouse compatibility.
  • Added tests for the new functionality, ensuring correct retrieval and inclusion of ALIAS columns in cube definitions.
Screenshot 2026-04-23 001728

…neration

- Introduced `fetchClickHouseAliasColumnNames` utility to retrieve ALIAS column names from ClickHouse.
- Updated `buildCubeSource` and `buildRawCube` functions to include ALIAS columns in the generated SQL after `SELECT *`.
- Enhanced `yamlGenerator` to emit cube-level SQL with proper handling of backticks for ClickHouse compatibility.
- Added tests for the new functionality, ensuring correct retrieval and inclusion of ALIAS columns in cube definitions.
@akshaykumar2505 akshaykumar2505 merged commit 3c0d94d into main Apr 23, 2026
3 checks passed
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.

2 participants