Apache Iceberg version
None
Please describe the bug 🐞
The upsert function does not work when one of the two fields used for comparison is NULL. The diff_expr variable needs to be enhanced to handle NULL values in the fields being compared, as the expression 'value' != NULL will never evaluate to true.
Here is how I fixed it locally from module upsert_util.py

Willingness to contribute
Apache Iceberg version
None
Please describe the bug 🐞
The upsert function does not work when one of the two fields used for comparison is NULL. The diff_expr variable needs to be enhanced to handle NULL values in the fields being compared, as the expression 'value' != NULL will never evaluate to true.
Here is how I fixed it locally from module
upsert_util.pyWillingness to contribute