Yibo-Dong opened a new issue, #19191:
URL: https://github.com/apache/iceberg/issues/19191
### Apache Iceberg version
1.12.0 (latest release)
### Query engine
Spark
### Please describe the bug 🐞
On ORC tables, `WHERE a IS DISTINCT FROM 7` silently drops the NULL rows of
`a` in files (stripes) where `a` is all NULL. `UPDATE` and `DELETE` with this
condition miss the same rows. Parquet is correct. Reproduced on `main`
(9d4f6c7, 2026-11-28) and 1.12.0, Spark 3.5.5.
### Reproduction
```sql
CREATE TABLE local.db.t (id INT, a INT) USING iceberg TBLPROPERTIES
('write.format.default'='orc');
INSERT INTO local.db.t VALUES (1, 3), (2, 7);
-- a file whose column a is all NULL
INSERT INTO local.db.t VALUES (3, NULL);
SELECT 'pushed', collect_list(id) FROM (SELECT id FROM local.db.t WHERE a IS
DISTINCT FROM 7 ORDER BY id);
-- control: same predicate, not pushed down
SELECT 'not pushed', collect_list(id) FROM (SELECT id FROM local.db.t WHERE
coalesce(a, a) IS DISTINCT FROM 7 ORDER BY id);
```
### Expected
| Query | Result |
|---|---|
| `pushed` | `[1,3]` |
| `not pushed` (control) | `[1,3]` |
### Actual
| Query | Result |
|---|---|
| `pushed` | `[1]` |
| `not pushed` (control) | `[1,3]` |
### 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
- [x] I cannot contribute a fix for this bug at this time
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]