Views: no mechanism to control or garbage-collect the number of `metadata.json` files
Los mantenedores suelen responder en 1 día
@adiranjan25 ya está trabajando en esto.
Desde el 2/10/2026.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
- Stack tecnológico
- java, spark
- Área
- data-engineering, databases
Línea de trabajo
Start by reproducing the repeated CREATE OR REPLACE VIEW sequence with the two metadata cleanup properties, then inspect how view metadata files are written and replaced. Use the listed object-storage paths to verify current behavior; done should include a defined retention or garbage-collection mechanism for view metadata files and coverage for the reproduction.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Query engine
Apache Iceberg version 1.10.1 (iceberg-spark-runtime-4.0_2.13),
Spark 4.0.1,
REST catalog (Apache Polaris)
Question
Table metadata files can be automatically cleaned up after commits via
write.metadata.delete-after-commit.enabled + write.metadata.previous-versions-max.
Views accept these properties, but they appear to have no effect: view metadata
files (*.metadata.json under the view location) accumulate indefinitely.
Is there an intended mechanism to control the number of view metadata files?
If not, this is a feature request: view metadata retention/garbage collection.
Reproduction
- Create a view with the cleanup properties:
CREATE OR REPLACE VIEW iceberg.ns.my_view TBLPROPERTIES ( 'write.metadata.delete-after-commit.enabled' = 'true', 'write.metadata.previous-versions-max' = '10' ) AS SELECT ...; - Repeatedly run CREATE OR REPLACE VIEW with the same SQL (e.g. 20 times).
- List the view location on object storage:
s3://bucket/ns/my_view/metadata/00001-...metadata.json
s3://bucket/ns/my_view/metadata/00002-...metadata.json
...
s3://bucket/ns/my_view/metadata/00029-...metadata.json # > previous-versions-max
- Lenguaje dominante
- Java
- Estrellas
- 9.4k
- Forks
- 3.7k
- Merge medio
- 2 d 15 h
- PR fusionados (30 d)
- 169
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/iceberg
-
Spark: Test INSERT targets with computed IDENTIFIER expressionsPosiblemente ocupada @shivadarshan-devadiga la tomó hace 8 días. Abiertoimprovement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
[Core] TestAvroPartitionStatsHandler fails on Windows due to unclosed partition statistics scanPosiblemente ocupada @Ankitkj1999 la tomó hace 10 días. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Flink: JdbcLockFactory concurrent lock-table creation can fail with "table already exists" and restart the jobPosiblemente ocupada @adiranjan25 la tomó hace 17 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/iceberg#18797 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Core: TableMetadata.Builder allows adding encryption keys to v1/v2 tablesPosiblemente ocupada @yusufyildiz34 la tomó hace 29 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/iceberg#18632 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Kafka: Filter empty strings and whitespace in IcebergSinkConfig stringToListPosiblemente ocupada @mohamed-elbrik la tomó hace 34 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
Todos los issues de apache/iceberg
Issues similares
-
needs-area-label
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Handle TSP error code 212Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
-
bug module: hybrid priority: high
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
bancolombia/bin-stash#92 ·
-
Pub/Sub nackSplit drops other splits' empty checkpoint entries and lowers pendingCheckpointsAbiertobug module:pubsub priority:P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
flink-gcp/flink-connector-gcp#2325 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eclipse-dirigible/dirigible#8877 ·
Los mantenedores suelen responder en 1 día