Gabriel39 commented on code in PR #70869:
URL: https://github.com/apache/doris/pull/70869#discussion_r4675507937


##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergScanPlanProvider.java:
##########
@@ -2204,6 +2205,46 @@ private static TFileFormatType 
deleteFileFormat(FileFormat format) {
         return null;
     }
 
+    /** Resolve table-relative physical locations before storage-scheme 
normalization. */
+    private UnaryOperator<String> newUriNormalizer(Table table, Map<String, 
String> vendedToken) {
+        UnaryOperator<String> normalize = newUriNormalizer(vendedToken);
+        // Metadata-table properties omit the format version; native 
delete-table ranges use the base version.
+        Table base = table instanceof BaseMetadataTable ? ((BaseMetadataTable) 
table).table() : table;
+        if (getFormatVersion(base) < 4) {
+            return normalize;
+        }
+        FileIO io = table.io();
+        // Reuse the bound view: nesting relative resolvers would rebase 
filesystem-rooted manifest version probes.
+        IcebergV4FileIO paths = io instanceof IcebergV4FileIO
+                ? (IcebergV4FileIO) io : new IcebergV4FileIO(io, 
table.location());
+        return new V4UriNormalizer(paths, normalize);

Review Comment:
   Fixed in 98778c5c1d. The frozen statement read table now owns the prepared 
V4 resolver for all three loading paths: direct, table-cache leases, and 
catalog-tracked resources. Authentication delegate views share only its 
transient path bindings; header/version loaders remain per delegate, writable 
tables remain mutable, and JNI task bindings stay task-local.
   
   The original eight direct-load scenarios reproduced the unbound-manifest 
failure. Expanding to 24 combinations also exposed 16 cached/tracked failures 
in the partial fix. All 24 now pass with V2/V3 upgrades, authenticated/plain 
consumers, cold/warm manifest caches and three filtered scans in one statement. 
Shared-view cache-only hits and detached-view misses remain IO-free.
   
   Final reactor validation: 916 cases in 22 suites, 915 passed, zero 
failures/errors and one pre-existing disabled mixed-MERGE affected-row-count 
test. All 69 V4 cases, all 20 JNI cases, lifecycle/cache/metadata/planning and 
related write tests pass; Checkstyle is clean in all changed Java modules. 
Rebased the branch onto master and retained the upstream GCS/JNI test 
additions. Latest packaged SQL and live KDC/object-store integration remain 
explicitly unverified in the description.



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