Skip to content

Conversation

@ahmedabu98
Copy link
Contributor

BigQuery clients sometimes * returns arrays as lists of KV maps with key "v". We handle this by unwrapping the value before doing further processing.

When we read arrays of structs, we shouldn't carelessly unwrap this map. This PR adds a check to only do so if the only key is "v", which indicates the case mentioned above.

  • In the past couple of years, I've never encountered this but I see logic that handles this case (as well as the get("f") case). I wonder if this is really old behavior that doesn't exist anymore and could use a cleanup.

@ahmedabu98
Copy link
Contributor Author

Fixes #29565

@ahmedabu98
Copy link
Contributor Author

R: @riteshghorse
R: @Abacn

@github-actions
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

@ahmedabu98
Copy link
Contributor Author

Ping for reviewers

Copy link
Contributor

@Abacn Abacn left a comment

Choose a reason for hiding this comment

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

Thank you!

@ahmedabu98 ahmedabu98 merged commit b6301b5 into apache:master Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants