You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage/working-with-partitions.md
+6-8
Original file line number
Diff line number
Diff line change
@@ -135,12 +135,12 @@ print(pdf)
135
135
136
136
## Updating Partitioned Tables with Merge
137
137
138
-
You can perform merge operations on partitioned tables in the same way you do on non-partitioned ones. If only a subset of existing partitions need to be read then provide a matching predicate that references the partition columns represented in the source data. The predicate then allows `deltalake` to skip reading the partitions not referenced by the predicate.
138
+
You can perform merge operations on partitioned tables in the same way you do on non-partitioned ones. If only a subset of existing partitions are present in the source (i.e. new) data then `deltalake` can skip reading the partitions not present in the source data. You can do this by providing a predicate that specifies which partition values are in the source data.
139
139
140
-
This example shows a merge operation that checks both the partition column (`"country"`) and another column (`"num"`) when merging:
141
-
- The merge condition (predicate) matches target rows where both "country" and "num" align with the source.
140
+
This example shows an upsert merge operation:
141
+
- The merge condition (`predicate`) matches rows between source and target based on the partition column and specifies which partitions are present in the source data
142
142
- If a match is found between a source row and a target row, the `"letter"` column is updated with the source data
143
-
- Otherwise if no match is found for a source row it inserts the new row, creating a new partition if necessary
143
+
- Otherwise if no match is found for a source row then the row is inserted, creating a new partition if necessary
0 commit comments