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

refactor schema to be more lenient with a trie #668

Merged
merged 1 commit into from
Nov 4, 2022
Merged

Conversation

tobymao
Copy link
Owner

@tobymao tobymao commented Nov 3, 2022

No description provided.

Copy link
Collaborator

@barakalon barakalon left a comment

Choose a reason for hiding this comment

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

Nice

visible = _nested_get(self.visible, *zip(self.supported_table_args, args)) # type: ignore
return [col for col in columns if col in visible] # type: ignore
def find_schema(
self, table: exp.Table, trie=None, raise_on_missing=True
Copy link
Collaborator

Choose a reason for hiding this comment

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

Some params are annotated, others aren't

@tobymao tobymao merged commit 449ce00 into main Nov 4, 2022
@tobymao tobymao deleted the toby/schema branch November 4, 2022 02:15
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