-
Notifications
You must be signed in to change notification settings - Fork 15.6k
fix: use catalog name on generated queries #34360
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
Conversation
Based on your review schedule, I'll hold off on reviewing this PR until it's marked as ready for review. If you'd like me to take a look now, comment
|
8fd6f23
to
9e0531b
Compare
9e0531b
to
50babc1
Compare
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.
Review by Korbit AI
Korbit automatically attempts to detect when you fix issues in new commits.
Category | Issue | Status |
---|---|---|
Cross-catalog Query Support Rationale Missing ▹ view | 🧠 Incorrect |
Files scanned
File Path | Reviewed |
---|---|
docker/pythonpath_dev/superset_config_docker_light.py | ✅ |
superset/connectors/sqla/models.py | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Check out our docs on how you can make Korbit work best for you and your team.
def get_sqla_table(self) -> TableClause: | ||
tbl = table(self.table_name) | ||
# For databases that support cross-catalog queries (like BigQuery), | ||
# include the catalog in the table identifier to generate | ||
# project.dataset.table format |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
dc449c7
to
fc38150
Compare
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.
LGTM - btw related PR -> #34296 needs review!
6646b24
to
dda17ec
Compare
dda17ec
to
16ddb4f
Compare
SUMMARY
When generating SQL in Explore, use the dataset catalog name in the query if it has one and the dialect supports the
catalog.schema.table
identifier structure (DB engine spec hassupports_cross_catalog_queries=True
).Fixes #33465.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION