JingsongLi commented on code in PR #6629:
URL: https://github.com/apache/paimon/pull/6629#discussion_r2538658806
##########
paimon-common/src/main/java/org/apache/paimon/rest/RESTTokenFileIO.java:
##########
@@ -263,6 +264,13 @@ public static Map<String, String>
mergeTokenWithDlfEndpointHandling(
*/
public RESTToken validToken() {
tryToRefreshToken();
- return token;
+ String dlfOssEndpoint =
catalogContext.options().get(DLF_OSS_ENDPOINT.key());
+ if (dlfOssEndpoint != null && !dlfOssEndpoint.isEmpty()) {
+ Map<String, String> newOptions = new HashMap<>(token.token());
+ newOptions.put("fs.oss.endpoint", dlfOssEndpoint);
+ return new RESTToken(newOptions, token.expireAtMillis());
Review Comment:
We should merge this endpoint when `token = new RESTToken`.
--
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]