plusplusjiajia commented on code in PR #1077:
URL: https://github.com/apache/paimon-rust/pull/1077#discussion_r4231927113
##########
crates/paimon/src/table/read_builder.rs:
##########
@@ -65,7 +65,8 @@ pub(super) fn split_scan_predicates(
filter: Predicate,
) -> (Option<Predicate>, Vec<Predicate>) {
let partition_keys = table.schema().partition_keys();
- if partition_keys.is_empty() {
+ // Auth rules may mask partition keys; retain the full read predicate.
+ if partition_keys.is_empty() ||
table.schema().core_options().query_auth_enabled() {
(None, filter.split_and())
Review Comment:
Fixed and added regression tests for append and data-evolution tables.
--
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]