public RelDataType inferReturnType(SqlOperatorBinding opBinding) {
   SqlCallBinding callBinding = (SqlCallBinding) opBinding;
   ExplicitOperatorBinding newOpBinding =
       new ExplicitOperatorBinding(
           opBinding,
           collectOperandTypes(
               callBinding.getValidator(), callBinding.getScope(), callBinding.getCall()));
   return SqlTypeStrategies.rtiNullableBoolean.inferReturnType(newOpBinding);
 }
예제 #2
0
 public RelDataType inferReturnType(SqlOperatorBinding opBinding) {
   SqlCallBinding callBinding = (SqlCallBinding) opBinding;
   return callBinding.getValidator().getNamespace(callBinding.getCall()).getRowType();
 }