JingsongLi commented on PR #9300: URL: https://github.com/apache/paimon/pull/9300#issuecomment-5466115980
For `SnapshotsTable`, `SchemasTable`, and `ManifestsTable`, when the intersection of multiple `IN` conditions is empty, the code still relies on `!ids.isEmpty()` to determine the presence of an `IN` clause; an empty intersection effectively degrades into a state with no `IN` condition, potentially returning the full dataset. For example: `snapshot_id IN (1,2) AND snapshot_id IN (3,4)` The logic should instead rely on `hasInFilter` to return an empty result immediately when the intersection is empty. `ConsumersTable` correctly utilizes `hasConsumerIdFilter` and is unaffected by this issue. -- 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]
