Revisa Apache Iceberg completo y reduce deuda P2 - #12
Merged
Conversation
Co-authored-by: Iago Prieto Lamas <IagoPL@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objetivo
Cerrar deuda P2 del manual Apache Iceberg y convertirlo en una introducción técnica real al open table format: catálogo, metadata JSON, snapshots, manifests y data/delete files. Spark es el motor pedagógico; Iceberg no depende de Spark.
Capítulos
days(event_time), transforms, spec como metadata, evolución sin rewrite automático, cardinalidadwriteToV2, INSERT/overwrite, MERGE/UPDATE/DELETE + extensions, time travel ≠ backuprewrite_data_files(binpack/sort/z-order),rewrite_manifests,expire_snapshots,remove_orphan_files+dry_runArquitectura
La tabla no se descubre listando el warehouse. No se editan metadata/manifests a mano.
Evolución
event_time; Iceberg aplicadays(event_time).Spark
SparkCatalog+ examplelocal(type=hadoopde laboratorio).df.writeTo("local.analytics.events").append().MERGE/UPDATE/DELETErequieren Iceberg Spark extensions (Spark 3.x). DataFramemergeInto= Spark 4.0+.CALLprocedures: nativos en Spark 4.0 (case-sensitive).Catálogos
OSS: Hadoop, Hive, REST, JDBC. REST es la interfaz estándar motor → implementación. Glue/Snowflake/Databricks/BigQuery no son requisitos.
Mantenimiento
rewrite_data_files— no existeOPTIMIZEgenérico.rewrite_manifests— otro nivel.expire_snapshots— default ~5 días; respeta branches/tags;mainno expira.remove_orphan_files— default ~3 días; siempredry_runprimero.Spec
Evitado: cifrado, geospatial, variant shredding, deletion vectors como receta cotidiana.
Auditoría
Informes solo con
npm run docs:audit.Fuentes oficiales
Validación
Local, todo OK:
No fusionar este PR. El siguiente bloque (Transformers) va en una PR independiente.