Skip to content

Conversation

@morningman
Copy link
Contributor

bp #34517

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

…4517)

Followup apache#33610
Refactor the logic of schema cache for external table.
Before, the ExternalSchemaCache only caches the schema(which is `List<Column>`) of the table.
But actually, some other objects are also being refreshed when schema cache refreshing,
such as `partition columns`, etc.
So This PR mainly changes:

1. Add a new class `SchemaCacheValue` as a parent class for all kinds of cache value in ExternalSchemaCache
2. It contains `List<Column>` basically, and sub class can extend from it to add more cached objects.
3. Move all cached objects into `SchemaCacheValue`, so that they will be refreshed along with schema together.

Additional:
1. Remove unused warn log in AcceptListener.java
2. Fix unclear error msg if trino connector's table does not exist.
@morningman morningman merged commit 53332eb into apache:branch-2.1 May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants