[Feature] Support writing ARRAY<BLOB> fields
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
调研方向
Start with the ARRAY reader work from #387/#388, then trace BlobFormatWriter, schema validation, the data-evolution write path, and append/data-evolution compaction. Use the BLOB file specification as the format reference. Done means validation, null and descriptor handling, writing, compaction, round-trip tests, and Java/Python compatibility tests all pass.
由索引模型根据 Issue 内容生成。
描述
Search before asking
- I searched in the issues and found nothing similar.
Motivation
Java Paimon (apache/paimon#8181) and PyPaimon can write top-level ARRAY<BLOB> columns to dedicated .blob files. #387 (PR #388) adds read-only ARRAY<BLOB> support to Paimon C++, but C++ table creation, writes, and append compaction still reject these fields. As a result, C++ users cannot write ordered collections of multimodal objects, such as the frames or images of one sample, to a Paimon table.
Solution
Add Java-compatible write support for top-level ARRAY<BLOB> fields declared with blob-field:
- Schema validation: Match Java
SchemaValidationandColumnDirectiveUtils:- allow
ARRAY<BLOB>only as a top-level field declared withblob-field; - reject it for
blob-descriptor-field, partition keys, and tables without data evolution; - reject
BLOBelements nested more deeply, such asARRAY<ARRAY<BLOB>>.
- allow
- Blob format writer: Extend
BlobFormatWriterto encode eachARRAY<BLOB>row as the nested payload defined in the BLOB file spec. The payload contains:- array magic
1094861634; - version 1;
- element count;
- concatenated element data;
- Delta-Varint element length index;
- index length.
- array magic
- Null handling: Distinguish null arrays (outer length
-1), empty arrays (element count0), null elements (element length-1), and empty elements (element length0). - Element sources: Support both inline raw bytes and
BlobDescriptorelements. Descriptor elements are materialized from their referenced storage when written, as Java does. - Write path: Route
ARRAY<BLOB>fields to dedicated blob files in the data-evolution write path, and remove the write-side rejection for them. - Compaction: Support
ARRAY<BLOB>in append and data-evolution compaction, including placeholder (-2) handling across field groups. - Tests:
- add unit tests for payload encoding, null/empty cases, and error handling;
- add round-trip tests with the C++ reader from #387;
- add Java/Python cross-compatibility tests, with C++ writing and Java/Python reading.
Anything else?
- Depends on #387 / #388 for the reader side.
MAP<K, BLOB>write support andARRAY<BLOB>in primary-key managed BLOB storage (#204) are out of scope and can be tracked separately.- No public API changes are expected. The storage format follows the existing Java spec.
Are you willing to submit a PR?
- I'm willing to submit a PR!
- 主要语言
- C++
- 星标
- 65
- 派生
- 29
- 平均合并
- 2 天 5 小时
- 30 天内合并 PR
- 77
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/paimon-cpp 的其他 Issue
-
[Feature] dictionary encoded binary support可能已有人在做 @zhangweilst 于 4 天前认领。 未关闭enhancement
apache/paimon-cpp#381 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Feature] Bypass manifest lists on exact snapshot live-entry cache hits可能已有人在做 @wangyong9999 于 4 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 30/100
apache/paimon-cpp#375 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Feature] Support vector and full-text search in File Index可能已有人在做 @zjw1111 于 4 天前认领。 未关闭enhancement
难度 5/5 一周以上 新手友好度 45/100
apache/paimon-cpp#361 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Feature] Support 64-bit deletion vectors in Paimon C++可能已有人在做 @lszskye 于 4 天前认领。 未关闭enhancement
难度 4/5 3-5 天 新手友好度 45/100
apache/paimon-cpp#325 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Feature] Support Vortex file format可能已有人在做 @zhouyc-ali 于 4 天前认领。 未关闭enhancement
难度 5/5 一周以上 新手友好度 35/100
apache/paimon-cpp#319 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
查看 apache/paimon-cpp 的全部 Issue
相似的 Issue
-
category:port-update
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100
tensorflow/tflite-micro#3784 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
agentic-workflows automation
难度 2/5 1-3 小时 新手友好度 78/100
tenstorrent/tt-metal#57946 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
aristocratos/btop#1857 ·
维护者通常 3 天内回复