https://delta.io logo
y

Yuya Ebihara

04/20/2023, 10:46 PM
The delta protocol contains the following sentence, but check constraints should allow
unknown
(e.g.
1 > null
) in addition to
true
from SQL standard perspective in my understanding. Can we update the protocol?
Rows in a table must satisfy CHECK constraints. In other words, evaluating the SQL expressions of CHECK constraints must return
true
for each row in a table.
cc: @Slawomir Pajak
@Allison Portis @Scott Sandre (Delta Lake) Could you confirm the above comment?
r

ruslan

04/22/2023, 9:00 PM
null shouldn’t violate check constraints unless you put in a specific is
not null
check. If Delta doesn’t work this way, this should be fixed (breaking change to the previous behavior)
y

Yuya Ebihara

04/23/2023, 11:25 PM
Thanks for your response. Filed https://github.com/delta-io/delta/issues/1714