-
Notifications
You must be signed in to change notification settings - Fork 114
feat(go/adbc/sqldriver): read from union types #2637
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay on the response here, this looks good to me in general, but can we add a test which contains more than one type in the union? With results from both types and ensure that we get the correct values for each index?
Also, can we please add a test for DenseUnion in addition to the test with SparseUnion?
Thanks for taking a look! Will add the tests. Are you okay with not supporting nested unions? I could have added a loop for that but I thought the added complexity wasn't worth the questionable value of nested unions. |
Incrementally adding support should be fine. so not supporting nested unions for now is fair. Besides, it just means it's a good reason to use the Arrow interfaces directly instead 😄 |
Added. Forgot to ask if squashed commits are preferred. |
Implements reading from union types and adds a unit test. All tests pass. Closes apache#2636
Squashed commits aren't necessary since we're going to squash it anyways when we merge it. |
Any comments on the latest changes? |
Sorry, been super crazy on my end last week. This looks good! thanks!! |
Thanks! |
Implements reading from union types and adds a unit test. All tests pass, except those with C shared object dependencies. I did not build the code outside go/adbc - let me know if needed for this PR.
In addition to the added unit test, I tested the scenario from the issue with DuckDB.
Closes #2636