We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea69fe3 commit a290f75Copy full SHA for a290f75
google/cloud/bigquery/query.py
@@ -689,7 +689,20 @@ def _from_api_repr_struct(cls, resource):
689
struct_resource["parameterValue"] = array_value
690
struct_value = StructQueryParameter.from_api_repr(struct_resource)
691
converted.append(struct_value)
692
- return cls(name, "STRUCT", converted)
+ return cls(
693
+ name,
694
+ StructQueryParameterType(
695
+ *[
696
+ ScalarQueryParameterType(
697
+ struct_type["type"]["type"], name=struct_type["name"]
698
+ )
699
+ for struct_type in resource["parameterType"]["arrayType"][
700
+ "structTypes"
701
+ ]
702
703
+ ),
704
+ values=converted,
705
706
707
@classmethod
708
def _from_api_repr_scalar(cls, resource):
0 commit comments