Skip to content

Commit f2b99c7

Browse files
committed
ranges_update
1 parent 320fc89 commit f2b99c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dean_utils/polars_extras.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,10 @@ def pl_write_delta_append(
296296
assert (
297297
df.filter(
298298
(pl.col(partition_col) < pl.col("min_id"))
299-
| (pl.col(partition_col) > pl.col("max_id"))
299+
| (
300+
(pl.col(partition_col) > pl.col("max_id"))
301+
& (pl.col("node_id_range") < pl.col("node_id_range").max())
302+
)
300303
).height
301304
== 0
302305
)

0 commit comments

Comments
 (0)