We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93de319 commit aebcb48Copy full SHA for aebcb48
1 file changed
tests/table/test_upsert.py
@@ -528,6 +528,7 @@ def test_upsert_with_nulls(catalog: Catalog) -> None:
528
data_with_null = pa.Table.from_pylist(
529
[
530
{"foo": "apple", "bar": None, "baz": False},
531
+ {"foo": "banana", "bar": None, "baz": False},
532
],
533
schema=schema,
534
)
@@ -544,4 +545,10 @@ def test_upsert_with_nulls(catalog: Catalog) -> None:
544
545
upd = table.upsert(data_without_null, join_cols=["foo"])
546
assert upd.rows_updated == 1
547
assert upd.rows_inserted == 0
- assert table.scan().to_arrow() == data_without_null
548
+ assert table.scan().to_arrow() == pa.Table.from_pylist(
549
+ [
550
+ {"foo": "apple", "bar": 7, "baz": False},
551
552
+ ],
553
+ schema=schema,
554
+ )
0 commit comments