-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Conform to expected wire format for struct query parameters. #2892
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
Conform to expected wire format for struct query parameters. #2892
Conversation
bigquery/unit_tests/test__helpers.py
Outdated
| def test_from_api_repr_wo_name(self): | ||
| RESOURCE = { | ||
| 'parameterType': { | ||
| 'type': 'STRUTCT', |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
dhermes
left a comment
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.
I defer to @tswast on the correctness of this
| types = instance.struct_types | ||
| for item in resource['parameterType']['structTypes']: | ||
| types[item['name']] = item['type'] | ||
| types[item['name']] = item['type']['type'] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| """ | ||
| types = [ | ||
| {'name': key, 'type': value} | ||
| {'name': key, 'type': {'type': value}} |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
tswast
left a comment
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.
Thanks!
| types = instance.struct_types | ||
| for item in resource['parameterType']['structTypes']: | ||
| types[item['name']] = item['type'] | ||
| types[item['name']] = item['type']['type'] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| types = instance.struct_types | ||
| for item in resource['parameterType']['structTypes']: | ||
| types[item['name']] = item['type'] | ||
| types[item['name']] = item['type']['type'] |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
…query-parm Conform to expected wire format for struct query parameters.
Closes: #2887.
/cc @tswast