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

Policy Changes to support Py 3.11 #543

Merged
merged 12 commits into from
Dec 9, 2022
Merged

Policy Changes to support Py 3.11 #543

merged 12 commits into from
Dec 9, 2022

Conversation

colin-rogers-dbt
Copy link
Contributor

resolves #542

Description

Checklist

@cla-bot cla-bot bot added the cla:yes label Dec 9, 2022
@colin-rogers-dbt colin-rogers-dbt requested review from a team and nathaniel-may December 9, 2022 18:09
@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2022

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the dbt-spark contributing guide.

@colin-rogers-dbt colin-rogers-dbt self-assigned this Dec 9, 2022
@colin-rogers-dbt colin-rogers-dbt marked this pull request as ready for review December 9, 2022 18:09
@@ -171,7 +171,7 @@ def list_relations_without_caching(
return relations

def get_relation(self, database: str, schema: str, identifier: str) -> Optional[BaseRelation]:
if not self.Relation.include_policy.database:
if not self.Relation.get_default_include_policy().database:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ChenyuLInx does this still make sense? Just looping you in for python models impact sanity check

Copy link
Contributor

Choose a reason for hiding this comment

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

I am not familiar with include_policy, but as long as the relations are still the same, I think it won't affect python models

Copy link
Contributor

@McKnight-42 McKnight-42 left a comment

Choose a reason for hiding this comment

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

Fantastic work!

@colin-rogers-dbt colin-rogers-dbt merged commit 712a553 into main Dec 9, 2022
@colin-rogers-dbt colin-rogers-dbt deleted the py311PolicyChange branch December 9, 2022 20:39
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.

[CT-1637] [Feature] Handle py311-related changes in dbt-core
3 participants