use of org.apache.flink.table.planner.calcite.FlinkCalciteSqlValidator in project flink by apache.
the class TypeInferenceReturnInference method extractExpectedOutputType.
// --------------------------------------------------------------------------------------------
@Nullable
private RelDataType extractExpectedOutputType(SqlOperatorBinding opBinding) {
if (opBinding instanceof SqlCallBinding) {
final SqlCallBinding binding = (SqlCallBinding) opBinding;
final FlinkCalciteSqlValidator validator = (FlinkCalciteSqlValidator) binding.getValidator();
return validator.getExpectedOutputType(binding.getCall()).orElse(null);
}
return null;
}
Aggregations