Hi,

    2. As and when the element is received, add them to a list and when
    we want to write, create an instance of VectorizedRowBatch and
    iterate over the list containing the elements and transform each
    record into ColumnVectors and add to the same VectorizedRowBatch
    previously created.

There is no difference in the files produced by either approach, the row-batch being created by Flink has a slight advantage in memory management.

Here's how the Hive writer maintains compatibility to row-by-row writes.

https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/io/orc/WriterImpl.java#L307

    [1] https://issues.apache.org/jira/browse/FLINK-10114

Will watch this, cheers.

For streaming IO performance, there was a special mode added to ORC within hive-streaming.


HIVE_ORC_DELTA_STREAMING_OPTIMIZATIONS_ENABLED("hive.exec.orc.delta.streaming.optimizations.enabled", false, "Whether to enable streaming optimizations for ORC delta files. This will disable ORC's internal indexes,\n" + "disable compression, enable fast encoding and disable dictionary encoding."),

Cheers,
Gopal

Reply via email to