You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Binary statistics is not updated correctly if an underlying Binary array is modified in place #1792
I discovered the bug when converting an AVRO file to a Parquet file by reading GenericRecords from a file using DataFileStream.next(D reuse) method. The problem is that underlying byte array of avro Utf8 object is passed to parquet that saves it as part of BinaryStatistics and then the same array is modified in place on the next read.
I am not sure what is the right way to fix the problem (in BinaryStatistics or AvroWriteSupport).
If BinaryStatistics implementation is correct (for performance reasons) then this behavior should be documented and AvroWriteSupport.fromAvroString should be fixed to duplicate underlying Utf8 array.
I am happy to create a pull request once the desired way to fix the issue is discussed.
Activity
asfimport commentedon Apr 27, 2015
Ryan Blue / @rdblue:
I think this duplicates PARQUET-251. [~k.shaposhnikov@gmail.com], could you verify that?
asfimport commentedon Apr 28, 2015
Konstantin Shaposhnikov / @kostya-sh:
@rdblue, you are right, I should have searched for an existing bug report first.
asfimport commentedon Apr 28, 2015
Ryan Blue / @rdblue:
No problem, I just wanted to make sure.