[Bug] Nullability validation incorrectly checks children masked by null parents
- 主要語言
- C++
- 星號
- 65
- 分支
- 25
- 平均合併
- 2 天 9 小時
- 30 天內合併 PR
- 82
描述
### Search before asking
- [x] I searched in the [issues](https://github.com/apache/paimon-cpp/issues) and found nothing similar.
### Paimon-cpp version
master
### Minimal reproduce step
`ArrowUtils::CheckNullabilityMatch` recursively checks complete Arrow child arrays.
For nested Arrow types, a null parent may still have physical child values. These
children are logically hidden and should not participate in nullability validation.
However, if a hidden child is null and its field is non-nullable, the current
implementation rejects the batch.
This affects nested STRUCT, LIST, MAP, and VECTOR fields and is inconsistent with
Java's logical row semantics.
### What doesn't meet your expectations?
Expected behavior:
- Ignore child values masked by a null parent.
- Reject null children when the parent is valid and the child is logically visible.
### Anything else?
_No response_
### Are you willing to submit a PR?
- [x] I'm willing to submit a PR!
貢獻指南
研究方向
首先定位 ArrowUtils::CheckNullabilityMatch,以及涵蓋巢狀 STRUCT、LIST、MAP 和 VECTOR 陣列的測試。驗證 null 父層包含實體上為 null 的子層的情況,以及有效父層暴露 null 子層的情況;完成的標準是忽略被遮罩的子層,同時拒絕可見的非 nullable 子層。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- cpp
- 領域
- data-engineering
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 活躍
- 描述清晰度
- 基本清楚
- 新手友好度
- 58/100