Skip to content

Commit 909cf52

Browse files
committed
bigquery: fix array handling in parameterized queries
1 parent aea151b commit 909cf52

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bigquery/google/cloud/bigquery/_helpers.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,10 +497,13 @@ def to_api_repr(self):
497497
values = [converter(value) for value in values]
498498
resource = {
499499
'parameterType': {
500-
'arrayType': self.array_type,
500+
'type': 'ARRAY',
501+
'arrayType': {
502+
'type': self.array_type,
503+
},
501504
},
502505
'parameterValue': {
503-
'arrayValues': values,
506+
'arrayValues': [{'value': value} for value in values],
504507
},
505508
}
506509
if self.name is not None:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy