Skip to content

Deprecate DynamoDB Catalog to Reduce Catalog Scope - #9783

Merged
jackye1995 merged 5 commits into
apache:mainfrom
geruh:deprecate-dynamo
Feb 23, 2024
Merged

jackye1995 merged 5 commits into
apache:mainfrom
geruh:deprecate-dynamo

Conversation

@geruh

@geruh geruh commented Feb 22, 2024

Copy link
Copy Markdown
Member

As discussed in the community sync, we want to reduce the scope of supported catalogs in Iceberg. There are currently many options, which creates confusion and makes it difficult to properly test and upgrade each one.

The DynamoDBCatalog specifically has seen little adoption. It provides similar functionality to other catalogs we already support better like the GlueCatalog. As we look to simplify our catalog selection, the DynamoDB catalog makes sense as one to deprecate.

This PR marks the DynamoDB catalog as deprecated. It will be removed entirely in two releases, starting from Iceberg 1.6.0.

Please comment If you have any concerns or a hard dependency on this catalog.

@github-actions github-actions Bot added the AWS label Feb 22, 2024
/**
* DynamoDB implementation of Iceberg catalog
*
* @deprecated since version 1.6.0, will be removed after two full releases.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should we say fully remove in 2.0 instead? That is a better version to introduce breaking changes.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah this would be a much cleaner approach. If we deprecate by 2.0 we increase the window for the plan forward.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah 2.0 is probably a better time to make this change.

/**
* DynamoDB implementation of Iceberg catalog
*
* @deprecated since version 1.6.0, will be removed in 2.0.0 release

@ajantha-bhat ajantha-bhat Feb 23, 2024 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
* @deprecated since version 1.6.0, will be removed in 2.0.0 release
* @deprecated since 1.6.0, will be removed in 2.0.0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just to be in sync with other deprecated messages in the project.

import software.amazon.awssdk.services.dynamodb.model.PutItemRequest;
import software.amazon.awssdk.services.dynamodb.model.UpdateItemRequest;

/** @deprecated since version 1.6.0, will be removed in 2.0.0 release */

@ajantha-bhat ajantha-bhat Feb 23, 2024 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
/** @deprecated since version 1.6.0, will be removed in 2.0.0 release */
/** @deprecated since 1.6.0, will be removed in 2.0.0 */

@jackye1995

Copy link
Copy Markdown
Contributor

Side note, we should also deprecate the catalog in python, probably in a separated PR.

@nastra nastra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. It would be good to also update aws.md to indicate that the catalog is deprecated. Also we should hold off merging this until 1.5.0 is officially out.

@jackye1995

Copy link
Copy Markdown
Contributor

Thanks for the help, merging!

@jackye1995
jackye1995 merged commit 00b7d5b into apache:main Feb 23, 2024
@nastra

nastra commented Feb 23, 2024

Copy link
Copy Markdown
Contributor

@jackye1995 as I mentioned we should be holding off the merge until 1.5.0 is out. If we do another RC, then this diff will be included and I'm not sure this is what we wanted

@jackye1995

Copy link
Copy Markdown
Contributor

Oh sorry I totally missed that comment. I think we can put another PR to change the comment to say deprecated since 1.5.0, what do you think?

@nastra

nastra commented Feb 23, 2024

Copy link
Copy Markdown
Contributor

That might work too. Also do we want to update aws.md since it has some examples with that catalog?

@jackye1995

Copy link
Copy Markdown
Contributor

I see, let's do that quickly @geruh

@SreeramGarlapati

Copy link
Copy Markdown
Collaborator

@geruh - we (Salesforce DataCloud team) use DynamoDB catalog. AWS is the biggest cloud out there & dynamoDb is the most reliable aws's no-sql db as mgd. svc.
we started with Glue catalog & then, ran into several issues & had to move out to DynamoDB.
is there any way to not deprecate this?

cc: @rdblue @munendrasn

@namrathamyske

namrathamyske commented Feb 27, 2024 •

Copy link
Copy Markdown
Contributor

@geruh @jackye1995 @amogh-jahagirdar it was decided in sync to move all catalogs to another repo if i am not wrong, can we do that instead of removing the catalog altogether.

@ajantha-bhat

Copy link
Copy Markdown
Member

@SreeramGarlapati , @namrathamyske: Can you also comment that salesforce is using it and mention the problems with Glue catalog in details as a reply to the mailing list discussion? It can reach wider audience.

https://lists.apache.org/thread/b92zwcvy7917bhr5t00b07f7r8qqwxqj

@ajantha-bhat

Copy link
Copy Markdown
Member

For time being I have reverted the DynamoDb catalog deprecation from the code and prepared RC4. Let us discuss more on mailing list and conclude whether it needs to be deprecated or not. If concluded to be deprecated, we can deprecate in 1.6.0.

@jackye1995

Copy link
Copy Markdown
Contributor

@SreeramGarlapati @namrathamyske we discussed specifically about Dynamo in that community sync that we want to deprecate it directly. Let us talk more on the devlist about this.

Looks like you are the primary user of that catalog, in that case we are interested in a few options:

  1. you can move it to a Salesforce GitHub domain and own it
  2. we can potentially move it to a Amazon-owned GitHub domain (together with GlueCatalog) and collaborate there
  3. we just move it together with other catalogs to the new separated repo, more details need to be discussed in the community regarding that effort.

@amogh-jahagirdar

amogh-jahagirdar commented Feb 27, 2024 •

Copy link
Copy Markdown
Contributor

Yeah I think it's important to emphasize that deprecating in this repo, and removing it in 2.0 does not mean DynamoDBCatalog cannot exist in some form in some other repo.

@jackye1995 presented some good options to maintain continuity.

On another note, while the decision is already made and we can work with it, I think reverting this change should not have happened. The intention of deprecation is to give people a headstart on planning and awareness that it will be removed in the future. Reverting the deprecation, shortens that window which is probably the opposite of what we want.

@odysa

odysa commented Feb 28, 2024

Copy link
Copy Markdown

Some catalogs could be community-owned.
While the Iceberg team may officially deprecate some catalogs, open-source communities can still maintain them, like @jackye1995 suggested

bitsondatadev pushed a commit to bitsondatadev/iceberg that referenced this pull request Mar 3, 2024
devangjhabakh pushed a commit to cdouglas/iceberg that referenced this pull request Apr 22, 2024
zachdisc pushed a commit to zachdisc/iceberg that referenced this pull request Dec 23, 2024
laskoviymishka added a commit to laskoviymishka/iceberg-go that referenced this pull request Jul 8, 2025
zeroshade pushed a commit to apache/iceberg-go that referenced this pull request Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants