You need to load CSV files from GCS to BigQuery. The schema changes frequently. Which approach handles schema evolution automatically?
Trap 1: Dataprep with rigid recipe
Dataprep recipes are generally rigid regarding schema.
Trap 2: Cloud Functions with manual schema mapping
Manual mapping requires code changes when the schema evolves.
Trap 3: Dataflow with fixed schema
Fixed schemas break when the source file changes.
- A
Dataprep with rigid recipe
Why it fails: Dataprep recipes are generally rigid regarding schema.
- B
Cloud Functions with manual schema mapping
Why it fails: Manual mapping requires code changes when the schema evolves.
- C
Dataflow with fixed schema
Why it fails: Fixed schemas break when the source file changes.
- D
BigQuery Load job with auto-detect
A BigQuery load job with schema auto-detection infers column names and types from the source CSV at load time, so new or altered columns are absorbed without manual DDL. This directly satisfies the frequently changing schema constraint.