Review request for drill. Repository: drill-git Description
The patch is to fix the problem related to output type determiner for cast functions. Previously, cast function's definition uses a fixed type determiner, which is always non-nullable. However, when the input is of nullable type, even though cast's implementation is null_if_null, the output type is still non-nullable, which causes the compilation error reported in Drill-364.
To fix this, introduce a NullIfNullType output type determiner. It will take a minorType. If any of the argument is null, then it will return a nullable type, otherwise return a non-nullable type.
Also, fix a minor bug in cast function when target is int type. Diffs