Skip to content

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
@Swoorup
Copy link
Contributor Author

Swoorup commented Jun 13, 2024

Moved to #337

@Swoorup Swoorup closed this Jun 13, 2024
@Swoorup Swoorup deleted the sj-union-types branch June 13, 2024 07:14
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.

1 participant