plusplusjiajia opened a new pull request, #10839: URL: https://github.com/apache/paimon/pull/10839
### Purpose On a table with `query-auth.enabled`, PyPaimon served the `files` and `file_key_ranges` system tables, which report raw file statistics such as the min and max values of every column. Column masking cannot be applied to them, so for example `t$files` exposed the raw min and max of a masked column. As in Java `SystemTableLoader`, the `files`, `file_key_ranges`, `binlog` and `statistics` system tables are now refused on such a table with the same message (`NotImplementedError` in Python, `UnsupportedOperationException` in Java). Other system tables and tables without query auth are unchanged. As in Java, the system table name is now matched case-insensitively. ### Tests - `FilesystemCatalogSystemTableDispatchTest#test_query_auth_rejects_physical_metadata_tables`: the four tables (also spelled in upper case) are refused on a query-auth table, while `t$snapshots` and `$files` of a normal table still load. - `RestCatalogSystemTableDispatchTest#test_query_auth_rejects_physical_metadata_tables`: the same refusal through the REST catalog. - Both fail on master. The system table, query auth and REST permission tests pass locally: 523 tests. flake8 is clean. -- 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]
