Spark: Use InternalRow over Row for Changelog calculation

Aperta
#18,444 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java, spark
Ambito
data

Direzione di ricerca

The payload names no files or tests. Start with the linked issue apache/iceberg#18211 and locate the Spark changelog code path that decodes InternalRow to Row inside mapPartitions. Done means the changelog logic runs on InternalRow using Spark's ordering, with no Row round-trip, and existing changelog tests still pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

improvement
Feature Request / Improvement

https://github.com/apache/iceberg/issues/18211

The current changelog implementation:

  • InternalRow
  • mapPartitions decodes to Row
  • changelog logic
  • encode back to InternalRow
    InternalRow → decode to Row → changelog logic → encode to InternalRow

The proposed changelog implementation:

  • InternalRow
  • changelog logic using Spark ordering (avoiding our own equality checks)
  • InternalRow is used

This should help us avoid conversions, allocate less -> less GC

Query engine

Spark

Willingness to contribute
  • I can contribute this improvement/feature independently
  • I would be willing to contribute this improvement/feature with guidance from the Iceberg community
  • I cannot contribute this improvement/feature at this time
Lingua principale
Java
Stelle
9.4k
Fork
3.7k
Merge medio
2g 15h
PR unite (30g)
169

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/iceberg

Tutte le issue di apache/iceberg

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.