-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](catalog) refactor the schema cache for external table #34517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
|
run buildall |
zddr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by anyone and no changes requested. |
|
run buildall |
TPC-H: Total hot run time: 41740 ms |
TPC-DS: Total hot run time: 185839 ms |
Jibing-Li
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
…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.
…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.
…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.
…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.
Proposed changes
Followup #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:
SchemaCacheValueas a parent class for all kinds of cache value in ExternalSchemaCacheList<Column>basically, and sub class can extend from it to add more cached objects.SchemaCacheValue, so that they will be refreshed along with schema together.Additional:
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...