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

Added union type support in arrow feature #280

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

Conversation

Swoorup
Copy link
Contributor

@Swoorup Swoorup commented Mar 25, 2024

This adds an MVP support for union types for use in appender via arrows.
The insertion works fine currently for primitive and string types (more types can be added in the future).

However the retrieval is failing, possibly due to duckdb/duckdb#11326 ?

ok: CDataInterface("The datatype \"Union([(0, Field { name: \"num\", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }), (1, Field { name: \"str\", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} })], Sparse)\" expects 1 buffer, but requested 1. Please verify that the C data interface is correctly implemented.")

Thanks @Tishj for giving me pointers.

@Swoorup Swoorup changed the title Added struct type support in arrow feature Added union type support in arrow feature Mar 25, 2024
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.

None yet

1 participant