public void pruneColumns(Configuration conf, Path inputFile, Path outputFile, List<String> cols)
      throws IOException {
    RewriteOptions options = new RewriteOptions.Builder(conf, inputFile, outputFile)
        .prune(cols)
        .build();
    ParquetRewriter rewriter = new ParquetRewriter(options);
    rewriter.processBlocks();
    rewriter.close();
  }
@Test
  public void testNotExistsNestedColumn() throws Exception {
    // Create Parquet file
    String inputFile = createParquetFile("input");
    String outputFile = createTempFile("output");
    List<String> cols = Arrays.asList("Links.Not_exists");
    columnPruner.pruneColumns(conf, new Path(inputFile), new Path(outputFile), cols);
  }