Proto-Parquet cannot write a schema with an empty group
- 主要语言
- Java
- 星标
- 3.1k
- 派生
- 1.6k
- 平均合并
- 3 天 12 小时
- 30 天内合并 PR
- 33
描述
This is valid protobuf:
```java
message Something {
EmptyMessage outerEmptyMessage = 1;
}
message EmptyMessage {
}
```
However when we try to convert this to Parquet we get:
```java
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](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=andresp)
**Note**: *This issue was originally created as [PARQUET-1240](https://issues.apache.org/jira/browse/PARQUET-1240). Please see the [migration documentation](https://issues.apache.org/jira/browse/PARQUET-2502) for further details.*
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先,使用空的嵌套消息重现报告中的 protobuf 示例,并跟踪 protobuf-to-Parquet 的 schema 生成路径。确定生成的空 group 是 Parquet 不支持,还是生成不正确;如果需要更早进行验证,则让失败发生在 schema 生成阶段。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- databases
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100