singhpk234 commented on code in PR #13400:
URL: https://github.com/apache/iceberg/pull/13400#discussion_r2264691428
##########
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java:
##########
@@ -465,6 +479,27 @@ public Table loadTable(SessionContext context,
TableIdentifier identifier) {
return table;
}
+ private RestTable tableSupportsRemoteScanPlanning(
+ TableOperations ops, TableIdentifier finalIdentifier, RESTClient
restClient) {
+ if
(ops.current().properties().containsKey(REST_TABLE_SCAN_PLANNING_PROPERTY)) {
+ boolean tableSupportsRemotePlanning =
+ ops.current().propertyAsBoolean(REST_TABLE_SCAN_PLANNING_PROPERTY,
false);
+ if (tableSupportsRemotePlanning && restServerPlanningEnabled) {
+ return new RestTable(
+ ops,
+ fullTableName(finalIdentifier),
+ metricsReporter(paths.metrics(finalIdentifier), restClient),
+ this.client,
+ catalogAuth,
Review Comment:
i just realized, i sent the tableClient to this function which already has
done `client.withAuthSession(tableSession)` we should be good then :) ! let me
check if i can validate it by a test
--
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]