8000 fix: properly quote table names in SQL query builder by ZeRego · Pull Request #15819 · lightdash/lightdash · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 1 commit into from
Jul 11, 2025

Conversation

ZeRego
Copy link
Collaborator
@ZeRego ZeRego commented Jul 10, 2025

Closes: #15811

Query working in Lightdash
Screenshot 2025-07-10 at 21 23 48
Same query working in snowflake
Screenshot 2025-07-10 at 21 24 19

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.

Copy link
Collaborator Author
ZeRego commented Jul 10, 2025

Copy link

Your preview environment pr-15819 has been deployed.

Preview environment endpoints are available at:

Copy link

Copy link
Contributor
@magnew magnew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

""

Base automatically changed from feat/many-to-many to main July 11, 2025 08:03
@ZeRego ZeRego force-pushed the fix_properly_quote_table_names_in_SQL_query_builder branch from 133e400 to 7b63a68 Compare July 11, 2025 08:04
Copy link

@ZeRego ZeRego merged commit 5873ba6 into main Jul 11, 2025
28 of 29 checks passed
@ZeRego ZeRego deleted the fix_properly_quote_table_names_in_SQL_query_builder branch July 11, 2025 08:29
lightdash-bot pushed a commit that referenced this pull request Jul 11, 2025
## [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))
@lightdash-bot
Copy link
Collaborator

🎉 This PR is included in version 0.1803.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deduplication SQL missing quotes
3 participants
0