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 cac9fae commit c1d3b2dCopy full SHA for c1d3b2d
src/google/adk/tools/bigquery/query_tool.py
@@ -194,9 +194,14 @@ def execute_sql(
194
connection_properties=bq_connection_properties,
195
),
196
)
197
+ destination_dataset_id = None
198
+ if dry_run_query_job.destination:
199
+ destination_dataset_id = dry_run_query_job.destination.dataset_id
200
+
201
if (
202
dry_run_query_job.statement_type != "SELECT"
- and dry_run_query_job.destination.dataset_id != bq_session_dataset_id
203
+ and destination_dataset_id != bq_session_dataset_id
204
+ and destination_dataset_id is not None
205
):
206
return {
207
"status": "ERROR",
0 commit comments