[Bug] Nullability validation incorrectly checks children masked by null parents
- Vorherrschende Sprache
- C++
- Sterne
- 65
- Forks
- 25
- Ø Merge
- 2 T. 12 Std.
- Gemergte PRs (30 T.)
- 80
Beschreibung
### 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!
Beitragsleitfaden
Rechercherichtung
Beginne damit, ArrowUtils::CheckNullabilityMatch und die Tests zu finden, die verschachtelte STRUCT-, LIST-, MAP- und VECTOR-Arrays abdecken. Überprüfe Fälle, in denen Null-Eltern physisch nullwertige Kinder enthalten, sowie Fälle, in denen gültige Eltern Null-Kinder aufweisen; als abgeschlossen gilt die Arbeit, wenn maskierte Kinder ignoriert werden, während sichtbare nicht-nullbare Kinder abgelehnt werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp
- Bereich
- data-engineering
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 58/100