public RelDataType inferReturnType(SqlOperatorBinding opBinding) { RelDataTypeFactory typeFactory = opBinding.getTypeFactory(); RelDataType type1 = opBinding.getOperandType(0); RelDataType type2 = opBinding.getOperandType(1); return typeFactory.createDecimalQuotient(type1, type2); }