private static List<MockFile> mockDeltaWithSideFileForStreaming(String delta, int contentLength, int flush_length) {
    final int blockSize = 1000;
    boolean isDeltaHflushed = contentLength < flush_length;

    List<MockFile> files = new LinkedList<>();

    ByteBuffer bb = ByteBuffer.allocate(Long.BYTES);
    bb.putLong(flush_length);
    bb.array();

    MockBlock[] blocks = new MockBlock[(contentLength / blockSize) + 1];
    for (int i = 0; i < blocks.length; ++i) {
      blocks[i] = new MockBlock("host1");
    }

    files.add(new MockFile("mock:/streaming/" + delta + "/bucket_00000", blockSize, new byte[contentLength], isDeltaHflushed,
        blocks));
    files.add(new MockFile("mock:/streaming/" + delta + "/bucket_00000_flush_length", blockSize, bb.array(), false,
        new MockBlock("host1")));

    return files;
  }
Test column projection when using ACID.
ql/src/test/org/apache/hadoop/hive/ql/io/orc/TestInputOutputFormat.java