Skip to content

Commit ec590af

Browse files
committed
Throw exception if more than 1 job type in config
1 parent 8720b03 commit ec590af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/io/gbq.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,9 @@ def run_query(self, query, **kwargs):
396396
}
397397
config = kwargs.get('config')
398398
if config is not None:
399+
if len(config) != 1:
400+
raise ValueError("Only one job type must be specified, "
401+
"but given {}".format(','.join(config.keys()))
399402
if 'query' in config:
400403
if 'query' in config['query'] and query is not None:
401404
raise ValueError("Query statement can't be specified "

0 commit comments

Comments
 (0)