parquet-java icon indicating copy to clipboard operation
parquet-java copied to clipboard

Proto-Parquet cannot write a schema with an empty group

Open asfimport opened this issue 7 years ago • 1 comments

This is valid protobuf:

 


message Something {
    EmptyMessage outerEmptyMessage = 1;
}

message EmptyMessage {
}

However when we try to convert this to Parquet we get:


org.apache.parquet.schema.InvalidSchemaException: Cannot write a schema with an empty group: optional group outerEmptyMessage = 1 {
}

Is this a limitation of the Parquet format, or just a bug?

If the former, can we break earlier when generating the schema out of Protobuf, and not when trying to write the content to the already generated schema?

 

Reporter: André Pinto

Note: This issue was originally created as PARQUET-1240. Please see the migration documentation for further details.

asfimport avatar Mar 05 '18 11:03 asfimport

Can I ask any update this issue?

d3m3vilurr avatar Feb 19 '25 09:02 d3m3vilurr