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 6579648 commit 6bb0857Copy full SHA for 6bb0857
airflow/providers/google/cloud/hooks/bigquery.py
@@ -189,6 +189,11 @@ def get_sqlalchemy_engine(self, engine_kwargs=None):
189
"and extra__google_cloud_platform__keyfile_dict"
190
)
191
192
+ def get_records(self, sql, parameters=None):
193
+ if self.location is None:
194
+ raise AirflowException("Need to specify 'location' to use BigQueryHook.get_records()")
195
+ return super().get_records(sql, parameters=parameters)
196
+
197
@staticmethod
198
def _resolve_table_reference(
199
table_resource: Dict[str, Any],
0 commit comments