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
Field values are encoded directly in the field header. Element values of type bool are sent as an int8; true as 1 and false as 0.
and
The following element-types are used (see note below):
BOOL, encoded as 2
But it seems the ColumnIndex::null_pages field in alltypes_tiny_pages.parquet, written by parquet-mr version 1.12.0-SNAPSHOT (build 6901a2040848c6b37fa61f4b0a76246445f396db) encodes the element type as 1 and contains elements with value 2.
We probably need to be lenient and support both, decoding element values as byte_value == 1.
The text was updated successfully, but these errors were encountered:
The java implementation seems to clearly contradict the spec here
publicvoidwriteBool(booleanb) throwsTException {
if (booleanField_ != null) {
// we haven't written the field header yetwriteFieldBeginInternal(booleanField_, b ? Types.BOOLEAN_TRUE : Types.BOOLEAN_FALSE);
booleanField_ = null;
} else {
// we're not part of a field, so just write the value.writeByteDirect(b ? Types.BOOLEAN_TRUE : Types.BOOLEAN_FALSE);
}
}
And here, called via getCompactType and writeCollectionBegin.
The spec says
and
But it seems the
ColumnIndex::null_pages
field inalltypes_tiny_pages.parquet
, written byparquet-mr version 1.12.0-SNAPSHOT (build 6901a2040848c6b37fa61f4b0a76246445f396db)
encodes the element type as 1 and contains elements with value 2.We probably need to be lenient and support both, decoding element values as
byte_value == 1
.The text was updated successfully, but these errors were encountered: