You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per the SQL specification section 8.8 - null predicate:
<null predicate> ::=
<row value predicand> <null predicate part 2>
1) Let R be the <row value predicand> and let V be the value of R.
2) ...
b) ...
i) The value of “R IS NULL” is
1) If the value of every field of V is the null value, then True.
sharing my analysis. the incorrectness is due to a bug in the iterative optimizer rule SimplifyExpressions rewriter. adding this test case inside TestSimplifyExpressions is the way to reproduce this situation "closest" to the source of the bug.
@Test
public void testArrayNullPredicate() {
assertSimplifies("(null, null) is NULL", "true");
}
Per the SQL specification section 8.8 - null predicate:
Currently, Trino incorrectly returns
false
:The text was updated successfully, but these errors were encountered: