Yibo-Dong opened a new issue, #20905: URL: https://github.com/apache/hudi/issues/20905
### Bug Description **What happened:** After a column is dropped and re-added with the same name, `WHERE value IS NULL` returns no rows, although the full scan shows a row with `value = NULL`. With data skipping off, the same query returns that row. **What you expected:** | Query | Result | |---|---| | Q1 full scan | `1 NULL`, `2 new` | | Q2 `IS NULL`, data skipping on | `1 NULL` | | Q3 `IS NULL`, data skipping off | `1 NULL` | **Steps to reproduce:** ```sql SET hoodie.schema.on.read.enable = true; SET hoodie.datasource.write.schema.allow.auto.evolution.column.drop = true; SET hoodie.parquet.small.file.limit = 0; CREATE TABLE t (id INT, value STRING) USING hudi LOCATION '/tmp/hudi_drop_readd_stats'; INSERT INTO t VALUES (1, 'old'); ALTER TABLE t DROP COLUMN value; ALTER TABLE t ADD COLUMNS (value STRING); INSERT INTO t VALUES (2, 'new'); SELECT id, value FROM t ORDER BY id; -- Q1 SELECT id, value FROM t WHERE value IS NULL; -- Q2 SET hoodie.enable.data.skipping = false; SELECT id, value FROM t WHERE value IS NULL; -- Q3 ``` `small.file.limit = 0` keeps the second insert in a new file (with real-sized files no setting is needed). `allow.auto.evolution.column.drop` only works around #19766, which otherwise rejects the second insert. **Actual result:** | Query | Result | |---|---| | Q1 full scan | `1 NULL`, `2 new` | | Q2 `IS NULL`, data skipping on | **(no rows)** | | Q3 `IS NULL`, data skipping off | `1 NULL` | ### Environment **Hudi version:** master (8dafd38, 2026-11-24) and 1.2.1 **Query engine:** Spark 3.5.5 (spark-sql, `HoodieSparkSessionExtension` + `HoodieCatalog`), JDK 17 **Relevant configs:** defaults (metadata table and column stats on, data skipping on), plus the three `SET`s above ### Logs and Stack Trace No error; Q2 returns a wrong result. -- 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]
