Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Don't check duckdb and ray import if not used#33

Merged
JingsongLi merged 1 commit into
apache:mainapache/paimon-python:mainfrom
yuzelin:less-importyuzelin/paimon-python:less-importCopy head branch name to clipboard
Dec 3, 2024
Merged

Don't check duckdb and ray import if not used#33
JingsongLi merged 1 commit into
apache:mainapache/paimon-python:mainfrom
yuzelin:less-importyuzelin/paimon-python:less-importCopy head branch name to clipboard

Conversation

@yuzelin
Copy link
Copy Markdown
Contributor

@yuzelin yuzelin commented Dec 3, 2024

Purpose

Currently, it will import ray and duckdb even if user doesn't call to_duckdb and to_ray.
If user doesn't install ray/duckdb, an import error will be raised.

This PR fix it.

This new behavior is the same as PyIceberg.

Tests

API and Format

Documentation

@yuzelin yuzelin changed the title Don't import duckdb and ray if not used Don't check duckdb and ray import if not used Dec 3, 2024
@JingsongLi
Copy link
Copy Markdown
Contributor

+1

@JingsongLi JingsongLi merged commit 7f6a1d4 into apache:main Dec 3, 2024
yuzelin added a commit that referenced this pull request Dec 4, 2024
@yuzelin yuzelin deleted the less-import branch December 4, 2024 03:36
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.