Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit ab24d7f

Browse files
committed
revert type check
1 parent fc33078 commit ab24d7f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

google/cloud/bigquery/_job_helpers.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,17 +287,15 @@ def _to_query_request(
287287
# Default to standard SQL.
288288
request_body.setdefault("useLegacySql", False)
289289

290-
format_options = request_body.get("formatOptions", None)
291-
if not isinstance(format_options, dict):
292-
request_body["formatOptions"] = {}
290+
request_body.setdefault("formatOptions", {})
293291

294292
# Cannot specify both use_int64_timestamp and timestamp_output_format.
295293
if timestamp_precision == enums.TimestampPrecision.PICOSECOND:
296294
request_body["formatOptions"]["timestampOutputFormat"] = "ISO8601_STRING" # type: ignore
297295
else:
298296
# Since jobs.query can return results, ensure we use the lossless
299297
# timestamp format. See: https://github.com/googleapis/python-bigquery/issues/395
300-
request_body["formatOptions"]["useInt64Timestamp"] = True
298+
request_body["formatOptions"]["useInt64Timestamp"] = True # type: ignore
301299

302300
if timeout is not None:
303301
# Subtract a buffer for context switching, network latency, etc.

0 commit comments

Comments
 (0)