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

   ### What problem does this PR solve?
   
   Issue Number: close #67365
   
   Problem Summary: When JDBC metadata cannot be resolved, 
PluginDrivenExternalTable.initSchema() silently returned an empty Optional 
(missing connector table handle) or a present empty schema (valid handle, zero 
columns). Downstream, that empty Optional surfaces either as a null 
getFullSchema()/getBaseSchema() (NullPointerException in 
LogicalCatalogRelation) or as a context-free cache failure, and it is never 
cached, so a stale table-name entry re-hits the remote on every query.
   
   This change makes initSchema() fail loud with an actionable 
DorisConnectorException carrying the catalog and remote database.table so 
analysis fails deterministically with the real cause, and a zero-column 
(non-view) schema is rejected as a metadata resolution problem instead of being 
served as a normal empty schema.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test: Unit Test (PluginDrivenExternalTableTest) - added
   - Behavior changed: No
   - Does this need documentation: 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