IN/NOT IN filters on identity-partitioned timestamp_ns columns fail or return wrong results
Los mantenedores suelen responder en 1 día
@jiwen624 ya está trabajando en esto.
Desde el 24/10/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
The bug sits in how IN and NOT IN predicates on identity-partitioned timestamp_ns columns are evaluated during scan planning, so start from the partition projection and predicate evaluation code in the Iceberg core scan path. Reproduce with the three cases in the issue (file2026 IN overflow, file1970 IN returning 0 files, notIn deleteFromRowFilter dropping file1970). Done means all three cases behave as the 'after' results and a regression test covers nanosecond values near 1970 and 2026.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Apache Iceberg version
1.12.0 (latest release)
Query engine
Other
Please describe the bug 🐞
On a v3 table with a timestamp_ns column ts partitioned by identity(ts), an IN or NOT IN filter with two or more values fails during scan planning:
table.newScan()
.filter(Expressions.in("ts", "2026-01-01T00:00:00.000000001", "2025-01-01T00:00:00.000000001"))
.planFiles();
// java.lang.ArithmeticException: long overflow
For timestamps near 1970-01-01 there is no error, but the results are wrong:
INskips files that contain matching rows.newDelete().deleteFromRowFilter(notIn(...))deletes files whose rows all match an excluded value.
Schema schema = new Schema(optional(1, "ts", Types.TimestampNanoType.withoutZone()));
PartitionSpec spec = PartitionSpec.builderFor(schema).identity("ts").build();
// format v3 table; each case appends one DataFile whose partition is set with
// PartitionData.set(0, DateTimeUtil.isoTimestampToNanos(<its ts>))
// file2026 partitioned at ts = 2026-01-01T00:00:00.000000001
table.newScan().filter(Expressions.in("ts",
"2026-01-01T00:00:00.000000001", "2025-01-01T00:00:00.000000001")).planFiles();
// before: ArithmeticException: long overflow after: 1 file
// file1970 partitioned at ts = 1970-01-01T00:00:00.000001
table.newScan().filter(Expressions.in("ts",
"1970-01-01T00:00:00.000001", "1970-01-01T00:00:00.000002")).planFiles();
// before: 0 files after: 1 file
table.newDelete().deleteFromRowFilter(Expressions.notIn("ts",
"1970-01-01T00:00:00.000001", "1970-01-01T00:00:00.000002")).commit();
// before: file1970 is deleted (scan returns 0 files) after: file1970 is kept (1 file)
Willingness to contribute
- I can contribute a fix for this bug independently
- I would be willing to contribute a fix for this bug with guidance from the Iceberg community
- I cannot contribute a fix for this bug at this time
- 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
-
hermes-queue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
chrisalunlloyd2-sudo/mindpalace#430 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
unitycatalog/unitycatalog#2363 ·
Los mantenedores suelen responder en 1 día
-
area: editor P3 type: feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
halisonworks/mod-codeling#290 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
CVE-2026-63402 i18nextAbiertoarea/dependencies area/dependencies/js backport/26.6 backport/26.8 kind/cve severity/medium source/scan-dependencies status/triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 2 días