private void validateDimensionCSV(SchemaInfo schemaInfo,String factTableName,String dimTableName,CarbonFile dimFile,String partitionId,CarbonDataLoadSchema schema,String delimiter) throws DataLoadingException {
  String[] columnNames=getDimColumnNames(schemaInfo,factTableName,dimTableName,partitionId,schema);
  if (null == columnNames || columnNames.length < 1) {
    return;
  }
  if (!checkAllColumnsPresent(columnNames,dimFile.getAbsolutePath(),delimiter)) {
    LOGGER.error("CSV File provided is not proper. Column names in schema and csv header are not same. " + "CSVFile Name : " + dimFile.getName());
    throw new DataLoadingException(DataProcessorConstants.CSV_VALIDATION_ERRROR_CODE,"Dimension CSV file provided is not proper. Column names in Schema and csv header are " + "not same. CSVFile Name : " + dimFile.getName());
  }
}

private void validateDimensionCSV ( SchemaInfo schemaInfo , String factTableName , String dimTableName , CarbonFile dimFile , String partitionId , CarbonDataLoadSchema schema , String delimiter ) throws DataLoadingException { String [ ] columnNames = getDimColumnNames ( schemaInfo , factTableName , dimTableName , partitionId , schema ) ; if ( null == columnNames || columnNames . length < 1 ) { return ; } if ( ! checkAllColumnsPresent ( columnNames , dimFile . getAbsolutePath ( ) , delimiter ) ) { LOGGER . error ( "CSV File provided is not proper. Column names in schema and csv header are not same. " + "CSVFile Name : " + dimFile . getName ( ) ) ; throw new DataLoadingException ( DataProcessorConstants . CSV_VALIDATION_ERRROR_CODE , "Dimension CSV file provided is not proper. Column names in Schema and csv header are " + "not same. CSVFile Name : " + dimFile . getName ( ) ) ; } }
validate the dimension csv files .
