nastra commented on code in PR #10345: URL: https://github.com/apache/iceberg/pull/10345#discussion_r1625998903
########## core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java: ########## @@ -915,7 +923,13 @@ private FileIO tableFileIO(SessionContext context, Map<String, String> config) { } private AuthSession tableSession(Map<String, String> tableConf, AuthSession parent) { - Pair<String, Supplier<AuthSession>> newSession = newSession(tableConf, tableConf, parent); + Map<String, String> credentials = Maps.newHashMapWithExpectedSize(tableConf.size()); + for (String prop : tableConf.keySet()) { + if (TABLE_SESSION_ALLOW_LIST.contains(prop)) { + credentials.put(prop, tableConf.get(prop)); + } + } Review Comment: nit: newline after the closing } -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org