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

Pin to duckdb v0.10.2 to avoid view dependencies #399

Merged
merged 2 commits into from
May 30, 2024

Conversation

guenp
Copy link
Collaborator

@guenp guenp commented May 30, 2024

This PR adds a constraint to setup.py to skip duckdb v0.10.3 and avoid issues with view dependency enforcement. This will be fixed in 0.10.4 and above by the enable_view_dependencies configuration setting (which is set to false by default).

Related issue: duckdb/duckdb#12191

Skip duckdb v0.10.3 to avoid issues with view dependency enforcement. This will be fixed in 0.10.4 by the enable_view_dependencies configuration setting (which is set to false by default).
@guenp guenp requested a review from jwills May 30, 2024 00:14
@guenp guenp changed the title Skip duckdb v0.10.3 to avoid view dependencies Skip duckdb v0.10.2 to avoid view dependencies May 30, 2024
@guenp guenp changed the title Skip duckdb v0.10.2 to avoid view dependencies Pin to duckdb v0.10.2 to avoid view dependencies May 30, 2024
Copy link
Collaborator

@jwills jwills left a comment

Choose a reason for hiding this comment

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

Just a question on how this works-- I don't normally have this problem

setup.py Outdated Show resolved Hide resolved
@jwills jwills merged commit 36d3e4b into master May 30, 2024
33 checks passed
@jwills jwills deleted the guenp/fix-view-deps-10.3 branch May 30, 2024 16:06
# add dbt-core to ensure backwards compatibility of installation, this is not a functional dependency
"dbt-core>=1.8.0",
],
extras_require={"glue": ["boto3", "mypy-boto3-glue"], "md": ["duckdb>=0.10.2"]},
extras_require={"glue": ["boto3", "mypy-boto3-glue"], "md": ["duckdb==0.10.2"]},

Choose a reason for hiding this comment

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

I think this change isn't needed? The constraint on the top-level dependency should prevent 0.10.3 from being installed if the user requests dbt-duckdb[md].

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe not, but I don't think it does any harm

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is only used by the CI right now

@guenp guenp mentioned this pull request Jul 24, 2024
13 tasks
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

3 participants