private void validate(RelRoot relRoot, String sink, RelSchemaProvider outputSchemaProvider,
      SamzaRelConverter outputRelSchemaConverter) throws SamzaSqlValidatorException {
    if (!skipOutputValidation(relRoot, sink, outputSchemaProvider, outputRelSchemaConverter)) {
      // Validate select fields (including Udf return types) with output schema
      validateOutput(relRoot, outputSchemaProvider);
    }

    // TODO:
    //  1. SAMZA-2314: Validate Udf arguments.
    //  2. SAMZA-2315: Validate operators. These are the operators that are supported by Calcite but not by Samza Sql.
    //     Eg: LogicalAggregate with sum function is not supported by Samza Sql.
  }
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