kitoha opened a new pull request, #7539: URL: https://github.com/apache/gravitino/pull/7539
### What changes were proposed in this pull request? This PR removes the redundant invocation of `table.supportPartitions()` in `CatalogWrapper#doWithPartitionOps`. Now, the method is called once and its result is cached in a local variable. ### Why are the changes needed? Calling `table.supportPartitions()` twice results in unnecessary repeated look-ups. Caching the result improves code readability and performance. Fix: #7520 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? No behavior change is expected. -- 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]
