You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "laserninja (via GitHub)" <gi...@apache.org> on 2026/04/25 19:30:58 UTC

[PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

laserninja opened a new pull request, #16110:
URL: https://github.com/apache/iceberg/pull/16110

   ## Summary
   
   Handle `AlwaysFalse.INSTANCE` in `ParquetFilters.convert()` so it returns `FilterCompat.NOOP` instead of passing the Iceberg-internal sentinel through to Parquet.
   
   ## Problem
   
   Fixes #16032
   
   `ParquetFilters.convert()` had a TODO comment acknowledging that `AlwaysFalse.INSTANCE` was not handled. The method only guarded against `AlwaysTrue.INSTANCE` before calling `FilterCompat.get(pred)`. Parquet does not understand Iceberg's internal `AlwaysFalse` type, so the resulting filter was undefined — it could silently read all rows instead of none.
   
   ## Solution
   
   Added `&& pred != AlwaysFalse.INSTANCE` to the sentinel check in `convert()`, matching the existing `AlwaysTrue.INSTANCE` guard. When the expression reduces to `AlwaysFalse`, the method returns `FilterCompat.NOOP`. This is safe because Iceberg's own manifest-level filtering has already ensured no matching row groups will be scanned.
   
   ## Testing
   
   Added `TestParquetFilters` with five unit tests:
   
   - `alwaysFalseReturnsNoop` — regression guard for the exact bug
   - `alwaysTrueReturnsNoop` — confirms existing AlwaysTrue behaviour
   - `realPredicateReturnsFilter` — confirms real predicates still produce active filters
   - `notAlwaysFalseReturnsNoop` — `not(alwaysFalse)` resolves via the visitor
   - `andWithAlwaysFalseReturnsNoop` — `and(alwaysFalse, pred)` resolves via the visitor
   
   All existing `iceberg-parquet` tests pass.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #16110: Parquet: handle AlwaysFalse in ParquetFilters.convert()
URL: https://github.com/apache/iceberg/pull/16110


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "laserninja (via GitHub)" <gi...@apache.org>.
laserninja commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4403713933

   Agreed on both points.
   
   Agree that Parquet.read() with alwaysFalse() directly is user error, not something we need to protect against.
   
   The schema evolution scenario is the real bug, and "only push down where the columns are present" is a cleaner fix than what this PR currently has. I see two ways to implement it:
   
   In Parquet.java before calling ParquetFilters.convert(fileSchema, filter, caseSensitive), check whether the columns referenced by filter are all present in fileSchema. If any are missing, fall back to FilterCompat.NOOP for that file. The row-level correctness still holds because Parquet will return all rows, and Iceberg's own residual evaluation will handle the rest.
   
   In ConvertFilterToParquet when binding a predicate against a column that doesn't exist in the file schema, return null instead of AlwaysFalse.INSTANCE, and propagate nulls through and/or/not to indicate "not pushable" rather than "false". convert() then treats a null result the same as AlwaysFalse.INSTANCE is treated today, fall back to NOOP.
   
   I think option 1 is simpler and more transparent. Happy to update the PR with the schema evolution test and the Parquet.java-level column-presence check. Let me know if you (or @gaborkaszab) have a preference.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4676154791

   This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-5376679038

   This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any 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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "laserninja (via GitHub)" <gi...@apache.org>.
laserninja commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4363055087

   > **Can this happen with current code?** 
   Yes, but not through a direct `alwaysFalse()` scan filter. When `table.newScan().filter(Expressions.alwaysFalse())` is used, Iceberg's manifest-level filtering short-circuits and returns no file tasks, so `ParquetFilters.convert()` is never called. However, the bug is reachable when:
   - A predicate is applied on a column that does **not exist in an older Parquet file** (schema evolution) — the Iceberg manifest evaluator may include the file (null bounds → "could match"), but `ConvertFilterToParquet` binds against the Parquet file's schema, resolves the predicate to `AlwaysFalse.INSTANCE`, and the bug triggers.
   - The lower-level `Parquet.read()` API is called directly with an `alwaysFalse()` filter.
   
   **What the bug actually does:** Both `AlwaysTrue` and `AlwaysFalse` are Iceberg-internal `FilterPredicate` placeholders whose `accept()` method throws `UnsupportedOperationException("AlwaysTrue is a placeholder only")`. So the bug causes an exception, not silently incorrect results.
   
   **On a `TableScan`-level test:** I can write one using the schema evolution scenario above, write files without a column, add the column, scan with a predicate on that column, and verify no exception is thrown. Would you prefer that scenario, or do you have a specific case in mind? I can also add a `Parquet.read()` level test that directly demonstrates the exception being thrown before the fix.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-5287912856

   This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4405189871

   Shall we add a new predicate for the `Ignored` columns and handle this upstream in the expression? Then we could have a "correct" result in many cases.
   
   ```
     /**
      * Sentinel marker for a predicate that referenced a column outside the allowed set and therefore
      * cannot be evaluated. Distinct from {@link AlwaysTrue} so that {@code not(IGNORED)} does not
      * become {@code AlwaysFalse} and {@code or(x, IGNORED)} does not silently drop matching rows.
      */
     private static class Ignored implements FilterPredicate {
       static final Ignored INSTANCE = new Ignored();
   
       @Override
       public <R> R accept(Visitor<R> visitor) {
         throw new UnsupportedOperationException("Ignored is a placeholder only");
       }
     }
   ```


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "laserninja (via GitHub)" <gi...@apache.org>.
laserninja commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4676852777

   @pvary would you be able to review this?


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4679404868

   @laserninja: You mentioned that you would update the PR with Ignored, but I don't see it. What do I miss?


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4956006317

   > One thing worth flagging on the "TableScan-based test" ask: the modern reader path (ReadConf/ParquetReader, used whenever a createReaderFunc/batched func is set) does its row-group filtering with ParquetMetricsRowGroupFilter et al. against the expected/table schema and never calls ParquetFilters.convert(). convert() is only reached via the legacy read-support (ParquetReadBuilder) path, which binds the filter against the physical file schema — that's the only place the missing-column case arises. So a TableScan going through createReaderFunc won't exercise this code at all.
   
   I just found out this in another PR. This means, that the `ParquetFilters.convert()` is only used in deprecated code paths and it will be removed in 2.0. Based on this, if you don't have other info, it might not worth to put more effort to fix this.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "laserninja (via GitHub)" <gi...@apache.org>.
laserninja commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4954328758

   Pushed the `Ignored` change (40188e5c6).
   
   Summary:
   - Added the `Ignored` sentinel as sketched, distinct from `AlwaysTrue`/`AlwaysFalse`.
   - `ConvertFilterToParquet` returns `Ignored.INSTANCE` when a predicate references a column not present in the file schema — both in `predicate(UnboundPredicate)` (via `findField`/`caseInsensitiveFindField` returning null) and in `predicate(BoundPredicate)` (when `schema.idToAlias(fieldId)` is null, which previously produced a null Parquet column path).
   - Boolean composition:
     - `not(Ignored)` → `Ignored`
     - `and(x, Ignored)` → `x` (dropping a conjunct only widens the scan, which is safe)
     - `or(x, Ignored)` → `Ignored` (the missing column could match, so the OR can't be pushed)
     - `convert()` treats `Ignored` as NOOP for that file
   
   One thing worth flagging on the "TableScan-based test" ask: the modern reader path (`ReadConf`/`ParquetReader`, used whenever a `createReaderFunc`/batched func is set) does its row-group filtering with `ParquetMetricsRowGroupFilter` et al. against the **expected/table schema** and never calls `ParquetFilters.convert()`. `convert()` is only reached via the legacy read-support (`ParquetReadBuilder`) path, which binds the filter against the **physical file schema** — that's the only place the missing-column case arises. So a `TableScan` going through `createReaderFunc` won't exercise this code at all.
   
   Given that, I put the coverage in `TestParquetFilters` at the `convert()` level, which is exactly the per-file boundary where the bug lives — modeling the schema-evolution case with predicates on a column absent from the file schema:
   - `predicateOnMissingColumnReturnsNoop`
   - `notPredicateOnMissingColumnReturnsNoop`
   - `orWithMissingColumnReturnsNoop`
   - `andWithMissingColumnPushesPresentSide`
   
   If you'd still prefer an end-to-end test through the legacy Avro read-support path (write a file with the old schema, read with a filter on the new column), happy to add one. All existing `iceberg-parquet` tests pass.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "laserninja (via GitHub)" <gi...@apache.org>.
laserninja commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4418042377

   Ignored can be the right abstraction. The key semantic difference from AlwaysFalse is in or: or(x, AlwaysFalse) correctly simplifies to x, but or(x, Ignored) must stay Ignored because the missing column could have matching rows, so we can't push down the OR at all.
   
   Proposed semantics:
   
   not(Ignored) → Ignored
   or(x, Ignored) / or(Ignored, x) → Ignored (can't push; might miss rows)
   and(real, Ignored) / and(Ignored, real) → real (safe to push the resolvable side; AND with an ignored term can only be more restrictive)
   and(Ignored, Ignored) → Ignored
   convert(): treat Ignored.INSTANCE same as AlwaysTrue.INSTANCE → NOOP
   This gives "correct result in many cases" for AND-heavy filters on partially evolved files.
   
   I'll update the PR with:
   
   The Ignored sentinel class and the visitor changes above
   A TableScan-level integration test using the schema evolution scenario (write file without column, add column, scan with predicate on the new column)
   Updated unit tests in TestParquetFilters
   Does the and semantic look right to you, or would you prefer and(real, Ignored) → Ignored (simpler, NOOP the whole thing)?


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4351845361

   @laserninja: Could we have a TableScan based test case where this issue is highlighted? Could this happen in any way with the current code?


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4369991192

   > However, the bug is reachable when:
   > 
   > * A predicate is applied on a column that does **not exist in an older Parquet file** (schema evolution) — the Iceberg manifest evaluator may include the file (null bounds → "could match"), but `ConvertFilterToParquet` binds against the Parquet file's schema, resolves the predicate to `AlwaysFalse.INSTANCE`, and the bug triggers.
   
   I think this is reproducible, and we can write a test for it.
   Maybe the solution is to only push down filters to the Parquet files where the columns are actually present in the file.
   
   CC: @gaborkaszab 
   
   > * The lower-level `Parquet.read()` API is called directly with an `alwaysFalse()` filter.
   
   In my opinion this is an user error.
   
   WDYT?
   
   


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "laserninja (via GitHub)" <gi...@apache.org>.
laserninja commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4954277488

   yeah, sorry, I described the Ignored change but never pushed it. I'll have the commit up shortly with the sentinel, the visitor changes we discussed, and the schema-evolution TableScan test.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4327055677

   I have concerns with the proposed solution, because originally we converted the input filter to the equivalent Parquet filter. Following this line of thought, the `AlwaysFalse` should be converted to a filter which drops every record. Instead of this we assume user behavior and expect that the user will filter everything before coming here.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4953431400

   This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Parquet: handle AlwaysFalse in ParquetFilters.convert() [iceberg]

Posted by "laserninja (via GitHub)" <gi...@apache.org>.
laserninja commented on PR #16110:
URL: https://github.com/apache/iceberg/pull/16110#issuecomment-4349466977

   Yes, I agree NOOP is the wrong semantic. NOOP means "pass everything through", which is the opposite of AlwaysFalse. My rationale (that Iceberg's manifest filtering would have already excluded all relevant files) is an assumption about callers that shouldn't be baked into this method.
   
   The challenge is that Parquet's FilterApi doesn't expose a native alwaysFalse() predicate. A few approaches I can see:
   
   Visitor-level fix — have ConvertFilterToParquet.alwaysFalse() return a UserDefinedPredicate that always returns false. This keeps the semantics correct at the Parquet level but requires picking a concrete column type.
   Propagate as a special case — detect the AlwaysFalse.INSTANCE sentinel in convert() and return a RecordFilter / throw, making it the caller's responsibility to avoid this path.
   Open to your suggestion — is there an existing pattern in the codebase you'd prefer?
   I'll update the PR with whichever direction makes most sense. Happy to hear your preference.


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org