ArrayQueryParameter.from_api_repr does not support empty array
Opened this issue · 0 comments
TommyDew42 commented
The ArrayQueryParameter
class must take a StructQueryParameterType
if the values
is an empty array (docstring):
If the type is
'STRUCT'
/'RECORD'
andvalues
is empty,
the exact item type cannot be deduced, thus aStructQueryParameterType
instance needs to be passed in.
But in the method _from_api_repr_struct, we simply pass "STRUCT"
as the array_type.