@Override
    public void preFooterWrite(OrcFile.WriterContext context) throws IOException {
      if(numKeysCurrentStripe > 0) {
        preStripeWrite(context);
      }
      context.getWriter().addUserMetadata(
          OrcAcidUtils.ACID_STATS, StandardCharsets.UTF_8.encode(acidStats.serialize()));
      // here we don't generate the "hive.acid.key.index" metadata entry
    }
Version of KeyIndexBuilder that does not generate any key index
ql/src/test/org/apache/hadoop/hive/ql/io/orc/TestFixAcidKeyIndex.java