static void checkFile(Configuration conf, Path inputPath) throws IOException {
    FileSystem fs = inputPath.getFileSystem(conf);
    try (Reader reader = OrcFile.createReader(fs, inputPath)) {
      if (OrcInputFormat.isOriginal(reader)) {
        System.out.println(inputPath + " is not an acid file");
        return;
      }
    }

    AcidKeyIndexValidationResult validationResult = validate(conf, inputPath);
    boolean validIndex = validationResult.isValid;
    System.out.println("Checking " + inputPath + " - acid key index is " +
        (validIndex ? "valid" : "invalid"));
  }
Utility to check and fix the ACID key index of an ORC file if it has been written incorrectly
due to HIVE-18817.
The condition that will be checked in the ORC file will be if the number of stripes in the
acid key index matches the number of stripes in the ORC StripeInformation.
ql/src/java/org/apache/hadoop/hive/ql/io/orc/FixAcidKeyIndex.java