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

CAPI: Make it possible to create struct types #8455

Merged
merged 5 commits into from
Sep 4, 2023

Conversation

alnkesq
Copy link
Contributor

@alnkesq alnkesq commented Aug 3, 2023

The C API was previously able to only create union logical types -- not structs. This PR adds support for structs as well.

Note: I used duckdb_logical_type * instead of duckdb_logical_type like in duckdb_create_union_type, because non-C callers of this function might not know sizeof(duckdb::LogicalType) and so might be unable to allocate the member_types array. For now, I only changed the signature of this new function.

@github-actions github-actions bot marked this pull request as draft August 3, 2023 14:52
@Mytherin Mytherin marked this pull request as ready for review August 7, 2023 12:29
Copy link
Collaborator

@Mytherin Mytherin left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! LGTM. Could you just add a test to the C API tests that uses this function?

@alnkesq
Copy link
Contributor Author

alnkesq commented Aug 7, 2023

I added a test.

@alnkesq
Copy link
Contributor Author

alnkesq commented Aug 17, 2023

@Mytherin The CI failure seems to be unrelated (Python "Extension "/project/httpfs/httpfs.duckdb_extension" version (v..1-dev) does not match DuckDB version (0.0.0)")

@github-actions github-actions bot marked this pull request as draft August 18, 2023 07:06
@Mytherin Mytherin marked this pull request as ready for review August 30, 2023 09:08
@Mytherin Mytherin merged commit 8f536a1 into duckdb:main Sep 4, 2023
52 of 53 checks passed
@Mytherin
Copy link
Collaborator

Mytherin commented Sep 4, 2023

Thanks! LGTM

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

3 participants