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
The expression using FORMAT_TYPE and applying the != operator should return TRUE. Consequently, the WHERE clause should not filter out the row. However, the actual result set does not include the row with the value NULL, which indicates misbehavior.
Steps to Reproduce
DROPTABLE IF EXISTS t0;
CREATETABLEt0 ( c1 INTEGER) ;
INSERT INTO t0(c1) VALUES (NULL);
REFRESH TABLE t0;
SELECT*FROM t0; -- NULLSELECT ('text'!= FORMAT_TYPE(3, t0.c1)) FROM t0; -- TRUESELECT*FROM t0 WHERE ('text'!= FORMAT_TYPE(3, t0.c1));
-- Expected: NULL-- Actual: empty table
Thx for reporting yet another issue with null handling in the WHERE clause for functions, @suyZhong !
It has been fixed and will be available with the next hotfix release.
Activity
Fixed nullability for `format_type` scalar
Fixed nullability for `format_type` scalar
Fixed nullability for `format_type` scalar
Fixed nullability for `format_type` scalar
Fixed nullability for `format_type` scalar
Fixed nullability for `format_type` scalar
matriv commentedon Jun 25, 2024
Thx for reporting yet another issue with null handling in the WHERE clause for functions, @suyZhong !
It has been fixed and will be available with the next hotfix release.