partiql-lang-kotlin
partiql-lang-kotlin copied to clipboard
[isl static type mappers] Add tests for CAST/IS operators with `StaticType.ANY` behaving as null
(related to https://github.com/partiql/partiql-lang-kotlin/issues/514)
The isNullable
and isOptional
functions in StaticTypeMapper.kt
can be removed once the tests are added.
Source of the functions in StaticTypeMapper
:
https://github.com/partiql/partiql-lang-kotlin/blob/fb7992468158d947557dc979f48a5f41ce83aa43/lang/src/org/partiql/lang/mappers/StaticTypeMapper.kt#L23-L25