Skip to content

Commit bd18242

Browse files
committed
refactor(bigquery): remove hardcoded DATE/DATETIME/JSON, require type_overrides
1 parent cd8d174 commit bd18242

File tree

5 files changed

+103
-346
lines changed

5 files changed

+103
-346
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
## New Features / Improvements
7070

71-
* Added `type_overrides` parameter to `WriteToBigQuery` allowing users to specify custom BigQuery to Python type mappings when using Storage Write API (Python) ([#25946](https://github.com/apache/beam/issues/25946)).
71+
* Added `type_overrides` parameter to `WriteToBigQuery` allowing users to specify custom BigQuery to Python type mappings when using Storage Write API. This enables support for types like DATE, DATETIME, and JSON (Python) ([#25946](https://github.com/apache/beam/issues/25946)).
7272

7373
## Breaking Changes
7474

sdks/python/apache_beam/io/gcp/bigquery_schema_tools.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@
4949
"BYTES": bytes,
5050
"TIMESTAMP": apache_beam.utils.timestamp.Timestamp,
5151
"GEOGRAPHY": str,
52-
"DATE": str,
53-
"DATETIME": str,
54-
"JSON": str,
5552
#TODO(https://github.com/apache/beam/issues/20810):
5653
# Finish mappings for all BQ types
5754
}

0 commit comments

Comments
 (0)