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


##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergScanPlanProvider.java:
##########
@@ -967,7 +968,7 @@ private List<ConnectorScanRange> planScanInternal(
                 ? extractVendedToken(table, restVendedCredentialsEnabled()) : 
Collections.emptyMap();
         // Derive the vended storage config ONCE per scan (the token is 
scan-invariant) and reuse it for every
         // per-file path normalization below, instead of rebuilding it per 
data/delete file (C3).

Review Comment:
   I checked this against the released SDK and the actual provider entry 
points. The five added cases already pass on e685cc46cb95: equality-delete 
properties, COUNT capability, position-delete COUNT, streaming estimation and 
the data-key probe, using Parquet manifests after a partition source and its 
historical schema have expired. I could not reproduce the reported failure; 
metadata-only readers do not consume the unused UNKNOWN partition fields in 
these cases.
   
   In 5072e047bf25, the probes now declare their minimal metadata projections 
through the shared SDK bridge. Full partition consumers use the existing 
physical-spec recovery, moved to that same bridge. This makes the distinct 
reader contracts explicit and preserves the baseline behavior without adding 
unnecessary footer reads to metadata-only probes. All five cases pass in the 
fresh 558-test run; this is not presented as a reproduced baseline defect.



##########
fe/fe-connector/fe-connector-iceberg/src/main/java/org/apache/doris/connector/iceberg/IcebergManifestEntryKey.java:
##########
@@ -25,20 +25,31 @@
 /**
  * Cache key for one iceberg manifest entry (T08).
  *
- * <p>Ported verbatim from the legacy fe-core
- * {@code org.apache.doris.datasource.iceberg.IcebergManifestEntryKey}. The 
key carries only stable identity
- * dimensions — the manifest path plus its content type — so two tables that 
share a manifest path hit the same
- * cached payload, and a table-level invalidation (REFRESH TABLE) 
intentionally does NOT drop it (legacy
- * {@code testInvalidateTableKeepsManifestCache} parity). Runtime loader 
context (the manifest/table instances)
- * must not be stored here.
+ * <p>Legacy keys retain the manifest path and content type. V4 keys also 
identify the table base, raw reference
+ * and descriptor fields inherited by parsed files. Physical aliases alone 
cannot identify those cached values.
+ * Table-level invalidation (REFRESH TABLE) intentionally does not drop 
immutable manifest entries. Runtime
+ * loader context (the manifest/table instances) must not be stored here.
  */
 public class IcebergManifestEntryKey {
     private final String manifestPath;
     private final ManifestContent content;
+    private final String tableLocation;

Review Comment:
   Fixed in 5072e047bf25. estimateManifestKey now includes tableLocation and 
each non-null boxed snapshot/sequence/first-row ID in addition to the shallow 
object and manifest path. The new V4 admission regression uses a retained table 
base larger than the byte budget while proving that the payload alone fits. It 
fails on the baseline because the entry is admitted and passes after the 
correction because the oversized key prevents admission.



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