-
Notifications
You must be signed in to change notification settings - Fork 581
fix: properly quote table names in SQL query builder #15819
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
fix: properly quote table names in SQL query builder #15819
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Your preview environment pr-15819 has been deployed. Preview environment endpoints are available at: |
Preview environment logs can be accessed at: https://console.cloud.google.com/logs/query;query=resource.labels.namespace_name%3D%22pr-15819%22;duration=PT30M?project=lightdash-previews |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
""
133e400
to
7b63a68
Compare
Preview environment logs can be accessed at: https://console.cloud.google.com/logs/query;query=resource.labels.namespace_name%3D%22pr-15819%22;duration=PT30M?project=lightdash-previews |
## [0.1803.1](0.1803.0...0.1803.1) (2025-07-11) ### Bug Fixes * properly quote table names in SQL query builder ([#15819](#15819)) ([5873ba6](5873ba6))
🎉 This PR is included in version 0.1803.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Closes: #15811
Query working in Lightdash


Same query working in snowflake
Description:
Fixed SQL query generation in MetricQueryBuilder by properly quoting table names in primary key references. This ensures compatibilit 8000 y with databases that require table names to be quoted, especially when they contain special characters or reserved keywords.