Skip to content

Commit a6a8f69

Browse files
added more info on schema changes
1 parent b1f8f84 commit a6a8f69

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README-template.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,10 @@ df.write \
391391
- Drop the table before overwriting
392392
- Use BigQuery DDL to alter the table schema first
393393

394-
This behavior was introduced between version 0.22.2 and 0.41.0 to prevent accidental schema drift.
394+
For some of the schema difference, the following options can work with overwrite:
395+
Programmatic Relaxation: Set `.option("allowFieldRelaxation", "true")` for nullability changes and `.option("allowFieldAddition", "true")` for new columns.
396+
397+
This behavior was introduced between version 0.22.0 and 0.41.0 to prevent accidental schema drift.
395398

396399
**Note:** This behavior applies to both the `indirect` (default) and `direct` write methods.
397400

0 commit comments

Comments
 (0)