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

New interfaces for resolving table names for databases with schemas #2498

Merged
merged 33 commits into from
May 28, 2024

Conversation

zachmu
Copy link
Member

@zachmu zachmu commented May 14, 2024

This is a proof of concept to get schema resolution working quickly, and I'm not super happy with the separation of concerns. A better solution would implement table name resolution in the Catalog directly, rather than in the integrator. That effort is significantly hindered by the Catalog being a concrete analyzer implementation with many analyzer-specific details that can't be easily substituted for another implementation. The longer term plan is to perform the extensive refactoring necessary to make the relevant parts of the Catalog swappable, rather than (effectively) having to swap only DatabaseProvider and friends.

cols.Add(sql.ColumnId(id))
}
if tin, ok := view.(plan.TableIdNode); ok {
// TODO should *sql.View implement TableIdNode?
Copy link
Contributor

Choose a reason for hiding this comment

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

it's definition Node probably needs to, it might happen recursively already

@zachmu zachmu marked this pull request as ready for review May 24, 2024 21:40
@zachmu zachmu merged commit ffc5ce2 into main May 28, 2024
8 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.

None yet

2 participants