Parquet export fails on a Decimal column

未关闭
#655 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
70/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
java

调研方向

The failure is raised in ParquetExporter.addColumn at ParquetExporter.java:169, which rejects Decimal columns with a STRUCT/LIST/MAP message. Read the Parquet import side that #628 changed to see how DECIMAL is mapped to Vortex, then mirror that mapping on export. Done when exporting a Decimal[precision=15, scale=2] column writes a Parquet DECIMAL(15,2) column and re-importing it gives the same type.

由索引模型根据 Issue 内容生成。

描述

bug

Following #628 (Parquet import reads `DECIMAL` as a Vortex decimal), the export side does not write one back:

```
vortex export lineitem.vortex out.parquet
UnsupportedOperationException: unsupported column type for Parquet export (STRUCT/LIST/MAP not yet supported): Decimal[precision=15, scale=2, nullable=false] (column: l_quantity)
at ParquetExporter.addColumn(ParquetExporter.java:169)
```

Repro: import any Parquet file with a `DECIMAL` column (e.g. TPC-H sf1 `lineitem` from `tpchgen-cli`), then export the result to `.parquet`. CSV export of the same file works.

Expected: a `DECIMAL(precision, scale)` column written with the matching Parquet physical type and logical annotation, so the import to export round trip is lossless. The message also names STRUCT/LIST/MAP, which is misleading for a decimal.

Found verifying the Snappy fix (#645).

主要语言
Java
星标
3
派生
2
平均合并
9 小时 47 分钟
30 天内合并 PR
128

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

dfa1/vortex-java 的其他 Issue

查看 dfa1/vortex-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。