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

test(duckdb): add test for chunk_size param in to_pyarrow_batches #10480

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

anjakefala
Copy link
Contributor

Description of changes

Added test to finish off #10445

@github-actions github-actions bot added tests Issues or PRs related to tests duckdb The DuckDB backend labels Nov 12, 2024
"age": np.random.randint(20, 70, size=500000),
}
)
batches = t.to_pyarrow_batches(chunk_size=100_000)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
batches = t.to_pyarrow_batches(chunk_size=100_000)
batches = con.to_pyarrow_batches(t, chunk_size=100_000)

You need to use con here, otherwise you'll implicitly set the default backend, which is what's currently causing CI to fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll absolutely change it! When does using the table implicitly set the default backend?

ibis/backends/duckdb/tests/test_client.py Outdated Show resolved Hide resolved
ibis/backends/duckdb/tests/test_client.py Outdated Show resolved Hide resolved
ibis/backends/duckdb/tests/test_client.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duckdb The DuckDB backend tests Issues or PRs related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants