@Test
  public void testAcidProjectedColumnSize() throws Exception {
    Path file = new Path(HiveTestUtils.getFileFromClasspath("bucket_00952_0"));
    FileSystem fs = FileSystem.getLocal(conf).getRaw();

    conf.setBoolean(ColumnProjectionUtils.READ_ALL_COLUMNS, true);
    OrcInputFormat.Context context = new OrcInputFormat.Context(conf);
    
    OrcInputFormat.SplitInfo splitInfo = new OrcInputFormat.SplitInfo(
        context, fs, fs.getFileStatus(file), null, null, false, new ArrayList<>(), true, null, null);
    OrcInputFormat.SplitGenerator splitter = new OrcInputFormat.SplitGenerator(splitInfo, null, true, true);
    
    List<OrcSplit> results = splitter.call();
    assertEquals(1246255309, results.get(0).getProjectedColumnsUncompressedSize());

    conf.setBoolean(ColumnProjectionUtils.READ_ALL_COLUMNS, false);
    conf.set(ColumnProjectionUtils.READ_COLUMN_IDS_CONF_STR, "2,4,6,8");
    
    results = splitter.call();
    assertEquals(10509573, results.get(0).getProjectedColumnsUncompressedSize());
  }
Create the binary contents of an ORC file that just has enough information
to test the getInputSplits.
@param stripeLengths the length of each stripe
@return the bytes of the file
@throws IOException
ql/src/test/org/apache/hadoop/hive/ql/io/orc/TestInputOutputFormat.java