-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add CatalogVersion and move CatalogHandle to SPI #15425
Conversation
core/trino-spi/src/main/java/io/trino/spi/connector/CatalogHandle.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/main/java/io/trino/connector/CatalogHandle.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/main/java/io/trino/connector/CoordinatorDynamicCatalogManager.java
Outdated
Show resolved
Hide resolved
} | ||
finally { | ||
catalogsUpdateLock.unlock(); | ||
} | ||
} | ||
|
||
static CatalogVersion computeCatalogVersion(String catalogName, String connectorName, Map<String, String> properties) |
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.
Didn't we say something about catalog versions being lexical sortable? Hashing doesn't seem to satisfy that. If it's not a real constraint, maybe just remove the comment about it being lexical sortable since that would be an implementation detail from the connector side.
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.
In the future work, a version can be anything the catalog store want and isn't required to be sortable.
core/trino-main/src/main/java/io/trino/connector/CoordinatorDynamicCatalogManager.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/main/java/io/trino/connector/CoordinatorDynamicCatalogManager.java
Outdated
Show resolved
Hide resolved
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.
See comments from @erichwang
Description
Add CatalogVersion and move CatalogHandle to SPI
Release notes
(x) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text: