Skip to content
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

Deprecate getTableHandle without versions #18596

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

findepi
Copy link
Member

@findepi findepi commented Aug 9, 2023

It got superseded by an overload that takes versions in 2a466ed. It should be deprecated since then. Some connectors (like Iceberg) do not implement the version-less overload at all.

Notes

# SPI
* Deprecate `ConnectorMetadata.getTableHandle(ConnectorSession, SchemaTableName)`.
  Connectors should implement `ConnectorMetadata.getTableHandle(ConnectorSession, SchemaTableName, Optional, Optional)`.

It got superseded by an overload that takes versions in
2a466ed. It should be deprecated since
then. Some connectors (like Iceberg) do not implement the version-less
overload at all.
@@ -104,8 +104,10 @@ default List<String> listSchemaNames(ConnectorSession session)
* cannot be queried.
* @see #getView(ConnectorSession, SchemaTableName)
* @see #getMaterializedView(ConnectorSession, SchemaTableName)
* @deprecated Implement {@link #getTableHandle(ConnectorSession, SchemaTableName, Optional, Optional)}.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice if the new method javadoc contained an explanation about startVersion/endVersion

@findepi findepi merged commit 5904423 into trinodb:master Aug 10, 2023
@findepi findepi deleted the findepi/findepi-table-handle branch August 10, 2023 08:15
@github-actions github-actions bot added this to the 423 milestone Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants