Skip to content

fix: duckdb lowerbound#1998

Merged
akshayka merged 1 commit into
mainfrom
aka/marimo-sql
Aug 11, 2024
Merged

fix: duckdb lowerbound#1998
akshayka merged 1 commit into
mainfrom
aka/marimo-sql

Conversation

@akshayka

Copy link
Copy Markdown
Contributor

Add an optional [sql] section to the pyproject.toml which enumerates our SQL dependencies with lower bounds, currently only duckdb >= 1.0.

Tell users to obtain SQL dependencies with pip install marimo[sql] instead of pip install duckdb, to ensure they get the correct versions.

Update the kernel capabilities check for SQL to check duckdb verison.

Fixes a bug in which we'd enable SQL support even though users were using incompatible versions of duckdb, causing the kernel to crash.

Add an optional [sql] section to the pyproject.toml which enumerates
our SQL dependencies with lower bounds, currently only duckdb >= 1.0.

Tell users to obtain SQL dependencies with pip install marimo[sql]
instead of pip install duckdb, to ensure they get the correct versions.

Update the kernel capabilities check for SQL to check duckdb verison.
@vercel

vercel Bot commented Aug 11, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2024 4:06am
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2024 4:06am

Comment thread marimo/_messaging/ops.py

def __post_init__(self) -> None:
self.sql = DependencyManager.has_duckdb()
if DependencyManager.has_duckdb():

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wonder if we could pass the version as an argument to this call. It could provide a better warning too or suggestion to upgrade.

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