Faulty behavior on nullable columns when using DeltaTable.merge
#2991
Labels
bug
Something isn't working
DeltaTable.merge
#2991
Environment
Delta-rs version: 0.21.0
Binding: Python
Environment:
Bug
There seems to be faulty behavior in
DeltaTable.merge
when columns are non-nullable. (i.e.nullable=False
).What happened:
if I merge an empty table with
None
values the first time, this operation runs ok. The second time the operation fails.What you expected to happen:
I expect if a column is non-nullable, trying to write a
null
/None
value to it, would always immediately raise an error.How to reproduce it:
Run the following script, make sure the table does not exist:
Running this the first time yields:
Now run the script again, this yields:
More details:
I tested this on a table thats written to my local filesystem, to Azure storage and to an Azurite emulator, all with the same result. I also tested with different column types, again the same result.
The text was updated successfully, but these errors were encountered: