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


##########
fe/fe-connector/fe-connector-paimon/src/main/java/org/apache/doris/connector/paimon/PaimonScanParams.java:
##########
@@ -196,8 +197,12 @@ public static FileStoreTable applyOptionsWithoutTimeTravel(
                     .filter(key -> !tableOptions.containsKey(key))
                     .forEach(key -> isolatedOptions.put(key, null));
         }
-        // The statement fence already selected the schema generation. 
Preserve that generation
-        // while carrying only the resolved read selector and execution 
options into this copy.
+        String schemaId = options.get(BOUND_SCHEMA_ID);
+        if (schemaId != null && table.schema().id() != 
Long.parseLong(schemaId)) {
+            // A cached table can predate binding, and latest can advance 
again after binding.
+            // Copy the exact schema while retaining catalog options, 
decorators and branch identity.

Review Comment:
   Fixed in 75ceac12b8. Schema restoration retains the bound generation’s 
schema-owned options and overlays only catalog/runtime overrides. The warm 
bucket-key and sequence-field rename test passes for both stale and newer 
loaded tables.



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