Gabriel39 opened a new pull request, #65708:
URL: https://github.com/apache/doris/pull/65708

   ### What problem does this PR solve?
   
   Issue Number: None
   
   External table metadata created by older versions may not contain a remote 
table name. Although `getRemoteName()` falls back to the local table name, the 
persisted field remains null after deserialization. Metadata paths that read 
the stored state directly can therefore send a null table name to a remote 
system, which may turn a table-scoped metadata lookup into a database-wide 
lookup.
   
   ### How was it fixed?
   
   Materialize the effective remote table name during Gson post-processing. 
Explicit remote-name mappings remain unchanged, while older metadata that 
omitted the field stores the existing local-name fallback.
   
   ### Release note
   
   Fix external table metadata loading when old persisted metadata is missing 
the remote table name.
   
   ### Check List (For Author)
   
   - Test
       - [x] Unit Test
   - Behavior changed:
       - [x] No. This materializes the fallback already defined by 
`getRemoteName()`.
   - Does this need documentation?
       - [x] No.


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