github-actions[bot] commented on code in PR #62775:
URL: https://github.com/apache/doris/pull/62775#discussion_r3135358501


##########
fe/fe-core/src/main/java/org/apache/doris/cloud/storage/RemoteBase.java:
##########
@@ -60,33 +61,43 @@ public static class ObjectInfo {
         // Used to get sts token
         public ObjectInfo(Cloud.ObjectStoreInfoPB.Provider provider, String 
ak, String sk,
                           String endpoint, String region, String roleName, 
String arn, String externalId) {
-            this(provider, ak, sk, null, endpoint, region, null, roleName, 
arn, externalId, null);
+            this(provider, null, ak, sk, null, endpoint, region, null, 
roleName, arn, externalId, null);
         }
 
         // Used by UT
         public ObjectInfo(Cloud.ObjectStoreInfoPB.Provider provider,
                           String ak, String sk, String bucket, String 
endpoint, String region, String prefix) {
-            this(provider, ak, sk, bucket, endpoint, region, prefix, null, 
null, null, null);
+            this(provider, null, ak, sk, bucket, endpoint, region, prefix, 
null, null, null, null);
         }
 
         // Used by upload for internal stage
         public ObjectInfo(Cloud.ObjectStoreInfoPB objectStoreInfoPB) {
-            this(objectStoreInfoPB.getProvider(), objectStoreInfoPB.getAk(), 
objectStoreInfoPB.getSk(),
-                    objectStoreInfoPB.getBucket(), 
objectStoreInfoPB.getEndpoint(), objectStoreInfoPB.getRegion(),
-                    objectStoreInfoPB.getPrefix());
+            this(objectStoreInfoPB.getProvider(), 
getCredProviderType(objectStoreInfoPB),
+                    objectStoreInfoPB.getAk(), objectStoreInfoPB.getSk(), 
objectStoreInfoPB.getBucket(),
+                    objectStoreInfoPB.getEndpoint(), 
objectStoreInfoPB.getRegion(),

Review Comment:
   `getCredProviderType(objectStoreInfoPB)` is used here and again in the 
private `ObjectInfo(ObjectStoreInfoPB, ...)` constructor below, but there is no 
helper with that name in `RemoteBase`. As written, FE will not compile. Please 
either add the missing helper or inline the enum extraction in both places 
before merging.



-- 
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]

Reply via email to