924060929 commented on code in PR #69501:
URL: https://github.com/apache/doris/pull/69501#discussion_r4373387849
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/plugin/PluginDrivenExternalTable.java:
##########
@@ -119,8 +119,24 @@ public PluginDrivenExternalTable(long id, String name,
String remoteName,
*/
public Optional<ConnectorTableHandle> resolveConnectorTableHandle(
ConnectorSession session, ConnectorMetadata metadata) {
+ PluginDrivenExternalCatalog owner = (PluginDrivenExternalCatalog)
catalog;
+ Connector connector = owner.getConnector();
+ ExternalDatabase<?> database = getDb();
+ Optional<Runnable> observation = database.observeTableLookup(this, ()
-> {
+ try {
+ connector.invalidateTable(db.getRemoteName(), getRemoteName());
Review Comment:
Fixed in 00e856e49e7. Automatic missing-table repair now clears connector,
derived metadata and FE object/ID state at database scope in both case-folding
modes, while retaining the exact observation and metadata-refresh-generation
guards. Added Foo -> FOO -> Foo tests for modes 1 and 2: both fail before the
fix and pass afterward, and the final lookup loads the third incarnation schema
instead of reusing historical state.
--
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]