Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent dimension names that match column names on ClickHouse if the dimension has a complex expression #6063

Conversation

begelundmuller
Copy link
Contributor

@begelundmuller begelundmuller commented Nov 8, 2024

This PR adds validation that prevents a ClickHouse-backed metrics view from having dimension names that collide with an underlying column name when and only when the dimension has a custom expression: or unnest: true. This is necessary because ClickHouse eagerly substitutes aliases, and without this validation, it leads to broken references to the underlying column in other dimensions/measures and where clauses.

This PR essentially implements the same constraint for dimensions as this PR added for measures: #5618. See it for details.

@begelundmuller begelundmuller self-assigned this Nov 8, 2024
@k-anshul k-anshul merged commit 42096ea into main Nov 8, 2024
9 checks passed
@k-anshul k-anshul deleted the begelundmuller/validate-clickhouse-dimension-expression-name-collision branch November 8, 2024 13:24
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