@@ -32,7 +32,7 @@ and fill missing columns with `null`. `schema_mode="merge"` is also supported on
32
32
You can overwrite a specific partition by using ` mode="overwrite" `
33
33
together with ` partition_filters ` . This will remove all files within the
34
34
matching partition and insert your data as new files. This can only be
35
- done on one partition at a time. All of the input data must belong to
35
+ done on one partition at a time. All the input data must belong to
36
36
that partition or else the method will raise an error.
37
37
38
38
``` python
@@ -60,20 +60,27 @@ already exist, making this operation idempotent.
60
60
61
61
This predicate is often called a `replaceWhere` predicate
62
62
63
- When you don’t specify the ` predicate ` , the overwrite save mode will replace the entire table.
64
- Instead of replacing the entire table (which is costly!), you may want to overwrite only the specific parts of the table that should be changed.
65
- In this case, you can use a ` predicate ` to overwrite only the relevant records or partitions.
63
+ When you don’t specify the ` predicate ` , the overwrite save mode will replace
64
+ the entire table. Instead of replacing the entire table (which is costly!), you
65
+ may want to overwrite only the specific parts of the table that should be
66
+ changed. In this case, you can use a ` predicate ` to overwrite only the relevant
67
+ records or partitions.
66
68
67
69
!!! note
68
70
69
- Data written must conform to the same predicate, i.e. not contain any records that don't match the `predicate` condition,
70
- otherwise the operation will fail
71
+ Data written must conform to the same predicate, i.e. not contain any records that don't match the `predicate` condition,
72
+ otherwise the operation will fail
71
73
72
74
{{ code_example('operations', 'replace_where', [ 'replaceWhere'] )}}
73
75
74
- ## Using Writer Properites
76
+ ## Using Writer Properties
75
77
76
- You can customize the Rust Parquet writer by using the [ WriterProperties] ( ../../api/delta_writer.md#deltalake.WriterProperties ) . Additionally, you can apply extra configurations through the [ BloomFilterProperties] ( ../../api/delta_writer.md#deltalake.BloomFilterProperties ) and [ ColumnProperties] ( ../../api/delta_writer.md#deltalake.ColumnProperties ) data classes.
78
+ You can customize the Rust Parquet writer by using the
79
+ [ WriterProperties] ( ../../api/delta_writer.md#deltalake.WriterProperties ) .
80
+ Additionally, you can apply extra configurations through the
81
+ [ BloomFilterProperties] ( ../../api/delta_writer.md#deltalake.BloomFilterProperties )
82
+ and [ ColumnProperties] ( ../../api/delta_writer.md#deltalake.ColumnProperties )
83
+ data classes.
77
84
78
85
79
86
Here's how you can do it:
@@ -102,4 +109,4 @@ data = pa.table(
102
109
)
103
110
104
111
write_deltalake(table_path, data, writer_properties = wp)
105
- ```
112
+ ```
0 commit comments