Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.18.0
-
None
Description
Example:
with ax(s) as (values ('xxx'),(cast(null as character varying))) select cast(s as int) IS NULL from ax;
returns a result set; which evaluates
however 'xxx' is not a valid integer; so an error should be recieved instead
Another class of almost the same issue:
select cast('xxx' as int) IS NULL;
is also problematic; in that case the not nullability is deduced from the fact that the literal's type is not nullable
Attachments
Issue Links
- blocks
-
CALCITE-2911 Release Calcite 1.19.0
- Closed
- causes
-
DRILL-7195 Query returns incorrect result or does not fail when cast with is null is used in filter condition
- Resolved
- relates to
-
CALCITE-2469 RexSimplify should optimize '(NOT x) IS NULL' to 'x IS NULL'
- Closed
- links to