Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Done
-
0.9.9
Description
Compressed page writer always clear the to-be-written ByteBuffer position and limit to be the entire buffer. This could be fine for writing pages in row format. However, in columnar format, this might incur compressing and writing unrelated data (as the ByteBuffer may contain data from a previous write).
Instead of clearing the ByteBuffer position and limit at the compressed page writer, it should be done during the call to BufferCache#confiscatePage(), which is the case currently. The compressed page writer, however, should not re-clear whatever limit is provided.