Skip to content

Add support for STRUCT and ARRAY types. #16

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

Merged
merged 2 commits into from
Aug 11, 2018
Merged

Add support for STRUCT and ARRAY types. #16

merged 2 commits into from
Aug 11, 2018

Conversation

tswast
Copy link
Collaborator

@tswast tswast commented Aug 10, 2018

Also called RECORD and REPEATED fields.

Closes #4

Also called RECORD and REPEATED fields.
@tswast
Copy link
Collaborator Author

tswast commented Aug 10, 2018

Note: I created this from the GitHub web UI. Ideally we'd add some tests for these queries to make sure this actually fixes the issue.

@sumedhsakdeo
Copy link
Contributor

I check out this PR, build a python whl, and tested it locally against a BQ table with nested fields. And it works!
Thank you so much!

@tswast
Copy link
Collaborator Author

tswast commented Aug 10, 2018

I'm adding some tests now. I need to fix one thing for arrays.

@tswast
Copy link
Collaborator Author

tswast commented Aug 10, 2018

@sumedhsakdeo I'm glad the fix worked for you. Thanks for trying it out!

I believe this PR is ready for review now. I've added tests and updated the logic to also work for REPEATED / ARRAY types.

@mxmzdlv mxmzdlv merged commit d214bb0 into googleapis:master Aug 11, 2018
@mxmzdlv
Copy link
Contributor

mxmzdlv commented Aug 11, 2018

This is fantastic. Thank you @tswast!

@tswast tswast deleted the patch-1 branch September 5, 2018 22:32
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.

3 participants