Gabriel39 commented on code in PR #71411:
URL: https://github.com/apache/doris/pull/71411#discussion_r4796500873
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/property/metastore/AbstractIcebergProperties.java:
##########
@@ -290,12 +290,9 @@ protected void
preserveHadoopGcsFileIO(List<StorageProperties> storageProperties
if (!ResolvingFileIO.class.getName().equals(ioImpl) && !(rest &&
ioImpl == null)) {
return;
}
- if (rest && ((IcebergRestProperties)
this).isIcebergRestVendedCredentialsEnabled()) {
- return;
- }
- // SDK storage options (including encryption and billing) must retain
their native semantics.
- // REST-only gcp.auth.* options do not select a storage identity.
- if (NativeGcsResolvingFileIO.hasSdkGcsProperties(fileIOProperties)) {
+ if (rest) {
+ // Table-load credentials arrive after catalog initialization;
validate their effective scope at use.
+ fileIOProperties.put(CatalogProperties.FILE_IO_IMPL,
NativeGcsResolvingFileIO.class.getName());
Review Comment:
Addressed in `849914a1635`.
Fixed in the follow-up commit. The REST FileIO factory now runs after the
SDK merges server defaults, client properties, overrides and table
configuration; only an absent or generic effective implementation selects the
compatibility resolver. The merged property map stays intact. Real REST tests
cover configuration precedence, Hadoop metadata reads, explicit table
implementations, scoped credential injection and catalog/table FileIO cleanup.
--
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]