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

ARRAY type support #306

Merged
merged 7 commits into from
Nov 8, 2024
Merged

Conversation

taniabogatsch
Copy link
Collaborator

@taniabogatsch taniabogatsch commented Nov 7, 2024

This PR adds support for the ARRAY type.

Appending ARRAY columns

The Appender can append both slices and arrays to ARRAY columns.
When passing a slice, the child count must match the array size.

Scanning ARRAY columns

Scanning into a slice directly or into a Composite array, e.g., Composite[[3]int32] is possible.

@taniabogatsch taniabogatsch added the feature / enhancement Code improvements or a new feature label Nov 7, 2024
rows.go Show resolved Hide resolved
@taniabogatsch taniabogatsch marked this pull request as ready for review November 7, 2024 10:59
Copy link
Owner

@marcboeker marcboeker left a comment

Choose a reason for hiding this comment

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

@taniabogatsch Thanks for the type addition. I've added some nits as comment.

type_info.go Show resolved Hide resolved
type_info_test.go Show resolved Hide resolved
vector_setters.go Outdated Show resolved Hide resolved
@taniabogatsch
Copy link
Collaborator Author

Hi, @marcboeker - thanks for the review! I've implemented your comments and replied to some others!

@taniabogatsch taniabogatsch merged commit e1b55d8 into marcboeker:main Nov 8, 2024
6 checks passed
@taniabogatsch taniabogatsch deleted the array-support branch November 8, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature / enhancement Code improvements or a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants