Gabriel39 commented on code in PR #70869:
URL: https://github.com/apache/doris/pull/70869#discussion_r4665747219
##########
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;
Review Comment:
Fixed in a39de787be5bdccdb9ffcbcb2bb67842e2a421c8.
The scan producer now composes `V4(Auth(raw))`, with the location captured
from the frozen metadata generation. Native planning sees and reuses one outer
resolver; typed manifest reads and producing-version probes still pass through
authenticated IO. This avoids both the second rebase and an unauthenticated
unwrap.
Added cold V2/V3 upgrade cases with a qualified table location and absolute
scheme-less metadata directory. They cover eager, cached and streamed warm
reads, with every underlying input-file factory asserting the test
authenticator's `doAs` scope. Both cases reproduce the reported wrong manifest
path at the previous head and pass with the fix. No live KDC/HDFS run is
claimed.
Before submitting, two local self-review passes completed with no new
verified finding in the final pass. The focused FE/JNI run passed 566 tests
with zero failures, errors or skips; required FE Checkstyle passed. Packaged
SQL execution was not rerun for this follow-up.
##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergConnectorMetadata.java:
##########
@@ -797,7 +797,7 @@ private Table resolveTableForRead(ConnectorSession session,
IcebergTableHandle h
value ->
IcebergConnector.cachedTableCleanup(value, catalogProps.getFlavor()));
}
IcebergEncryptionRead.check(table, catalogProps, context);
- return table;
+ return IcebergSnapshotTableOperations.v4ReadTable(table);
Review Comment:
Fixed in a39de787be5bdccdb9ffcbcb2bb67842e2a421c8 using the explicit V4
fallback option.
V4 now returns `OptionalLong.empty()` before metadata-delete candidate IO or
transaction creation. The caller continues its existing row-level path. This
keeps the read-only V4 adapter out of writable SDK transactions, whose raw IO
is not relative-path-adapted, and preserves the V2/V3 metadata-delete
optimization and its commit fences.
Added relative-metadata V4 cases with and without a deletion vector. Both
reproduce the missing-list exception at the previous head; after the fix they
return fallback without changing the snapshot, and ordinary native read
planning remains usable. The existing eight metadata-delete tests also pass.
Before submitting, two local self-review passes completed with no new
verified finding in the final pass. The focused FE/JNI run passed 566 tests
with zero failures, errors or skips; required FE Checkstyle passed. Packaged
SQL execution was not rerun for this follow-up.
--
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]