[Bug] Nullability validation incorrectly checks children masked by null parents
- Lingua principale
- C++
- Stelle
- 65
- Fork
- 25
- Merge medio
- 2g 12h
- PR unite (30g)
- 80
Descrizione
### 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!
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando ArrowUtils::CheckNullabilityMatch e i test che coprono array STRUCT, LIST, MAP e VECTOR annidati. Verifica i casi in cui genitori null contengono elementi figli fisicamente null e i casi in cui genitori validi espongono elementi figli null; il lavoro è completo quando gli elementi figli mascherati vengono ignorati, mentre gli elementi figli visibili non nullable vengono rifiutati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp
- Ambito
- data-engineering
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 58/100