fallintoplace opened a new issue, #1119: URL: https://github.com/apache/iceberg-go/issues/1119
`Scan.PlanFiles()` can skip validation of malformed `rowFilter` expressions when the scan is empty. What I found - `fetchPartitionSpecFilteredManifests()` returns early with `nil, nil` when there is no snapshot - even when there is a snapshot, per-spec manifest evaluators are created lazily and only used if there are manifests to iterate - other filter binding paths, such as partition projection and metrics evaluation, are only reached later in planning Relevant code - `table/scanner.go:466` - `table/scanner.go:483` - `table/scanner.go:500` - `table/scanner.go:586` - `table/evaluators.go:684` Why this matters On non-empty scans, invalid filter references normally fail during binding. On empty scans, the same malformed filter can be silently ignored because planning returns before any binding work is triggered. Expected behavior Malformed scan filters should fail consistently, even when: - the table has no current snapshot - the snapshot exists but has zero manifests after listing/filtering Actual behavior `PlanFiles()` can return no tasks and no error for malformed filters because the binding paths are only reached after manifest discovery. This does not look like a case-sensitivity bug. The issue seems to be validation timing on empty scans. I did not find an obvious existing issue for this in a quick tracker search. -- 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]
