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][Arrow] Don't deduplicate column names when outputting to Arrow #11160

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

Tishj
Copy link
Contributor

@Tishj Tishj commented Mar 14, 2024

This PR fixes #11157

This problem was likely introduced in #10532

When outputting to PyArrow, we create batches and then create a table from those batches.
When creating the batches we were deduplicating column names, but didn't do this for the schema passed to the table-from-batches function.

We properly skip deduplicating in both places now, Arrow has no problem with duplicate column names.

… in one place, but doing it in another, causing a schema mismatch in the produced arrow table
@Mytherin Mytherin merged commit 6218e71 into duckdb:main Mar 14, 2024
14 checks passed
@Mytherin
Copy link
Collaborator

Thanks!

github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request Mar 17, 2024
Merge pull request duckdb/duckdb#11161 from Maxxen/bugfixes
Merge pull request duckdb/duckdb#11160 from Tishj/dont_deduplicate_arrow_columns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants