private MessageType getSchemaWithoutPartitionColumns(JobConf conf, MessageType schema) {
    List<String> partCols = Utilities.getPartitionColumnNames(conf);
    if (partCols.isEmpty()) {
      return schema;
    }
    List<Type> newFields = new ArrayList<>();
    for (Type field : schema.getFields()) {
      if (!partCols.contains(field.getName())) {
        newFields.add(field);
      }
    }
    return new MessageType(schema.getName(), newFields);
  }
gets a ParquetInputSplit corresponding to a split given by Hive

@param conf The JobConf of the Hive job
@return a ParquetInputSplit corresponding to the oldSplit
@throws IOException if the config cannot be enhanced or if the footer cannot be read from the file
ql/src/java/org/apache/hadoop/hive/ql/io/parquet/ParquetRecordReaderBase.java