Details
-
Sub-task
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.25.0
-
None
-
None
Description
1) Javadoc for SqlOperator#inferReturnType does not say if nulls are allowed
2) The default implementation throws exception if returnTypeInference is missing, and it throws exception in case returnTypeInference.inferReturnType(opBinding) returns null.
3) Some of the operators can return null. For instance, SqlMultisetQueryConstructor has if (...) return null (which might happen to be never executed)
It looks like we need to add "never null" tp the javadoc of SqlOperator#inferReturnType