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

[Python] Fix InternalException from scanning Polars DF with no columns #11982

Merged
merged 4 commits into from May 13, 2024

Conversation

Tishj
Copy link
Contributor

@Tishj Tishj commented May 8, 2024

This PR fixes #11946

We were not checking that the dataframe produced at least one column, this failed later on with an InternalException.
Now it throws an InvalidInputException, similar to the behavior of scanning a pandas dataframe that has no columns.

src/function/table/arrow.cpp Outdated Show resolved Hide resolved
@duckdb-draftbot duckdb-draftbot marked this pull request as draft May 8, 2024 12:52
@Tishj Tishj marked this pull request as ready for review May 8, 2024 15:01
@Mytherin Mytherin merged commit e6b9864 into duckdb:main May 13, 2024
41 checks passed
@Mytherin
Copy link
Collaborator

Thanks!

github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request May 13, 2024
Merge pull request duckdb/duckdb#11982 from Tishj/python_empty_polars_df
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.

Querying empty Polars dataframe produces internal error
3 participants