We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdfbac8 commit 005ae94Copy full SHA for 005ae94
bigquery/query_builder.py
@@ -135,15 +135,16 @@ def _render_sources(dataset, tables):
135
"""
136
137
if isinstance(tables, dict):
138
- if tables['date_range']:
+ if tables.get('date_range', False):
139
try:
140
dataset_table = '.'.join([dataset, tables['table']])
141
return "FROM (TABLE_DATE_RANGE([{}], TIMESTAMP('{}'),"\
142
" TIMESTAMP('{}'))) ".format(dataset_table,
143
tables['from_date'],
144
tables['to_date'])
145
except KeyError as exp:
146
- raise Exception('Missing parameter %s' % (exp))
+ logging.warn('Missing parameter %s in selecting sources' %
147
+ (exp))
148
149
else:
150
return "FROM " + ", ".join(
0 commit comments