private RelDataType getCalciteSqlFieldType(RelDataType fieldType) {
    RelDataType sqlFieldType;

    // JavaTypes are relevant for Udf argument and return types
    // TODO: Support UDF argument validation. Currently, only return types are validated and argument types are
    //  validated during run-time.
    if (fieldType instanceof RelDataTypeFactoryImpl.JavaType) {
      sqlFieldType = new SamzaSqlJavaTypeFactoryImpl().toSql(fieldType);
    } else {
      sqlFieldType = fieldType;
    }

    return sqlFieldType;
  }
Determine if validation needs to be done on Calcite plan based on the schema provider and schema converter.
@param relRoot
@param sink
@param outputSchemaProvider
@param ouputRelSchemaConverter
@return if the validation needs to be skipped
samza-sql/src/main/java/org/apache/samza/sql/planner/SamzaSqlValidator.java