Skip to content

Use AllowDeltaLakeManagedTableRename in DeltaLakeMetadata#14066

Merged
findepi merged 1 commit intotrinodb:masterfrom
homar:homar/use_allow_rename_in_deltalake
Sep 13, 2022
Merged

Use AllowDeltaLakeManagedTableRename in DeltaLakeMetadata#14066
findepi merged 1 commit intotrinodb:masterfrom
homar:homar/use_allow_rename_in_deltalake

Conversation

@homar
Copy link
Copy Markdown
Member

@homar homar commented Sep 8, 2022

Description

Similar approach to what was done #14059 seems cleaner than the current one

Release notes

(x) This is not user-visible 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:

@cla-bot cla-bot bot added the cla-signed label Sep 8, 2022
@homar homar force-pushed the homar/use_allow_rename_in_deltalake branch from e0c0217 to 6cedeb9 Compare September 8, 2022 23:57
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.

move to previous line

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.

allowManagedTableRename ?

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.

in #14059 i went with "with current metastore configuration" to indicate this isn't a permanent Delta's property, but it's configuration dependent.
Not sure if it matters though

@findepi
Copy link
Copy Markdown
Member

findepi commented Sep 9, 2022

Thank you for your PR!

I had a bug in #14059. You'll need to rebase.

@homar homar force-pushed the homar/use_allow_rename_in_deltalake branch 4 times, most recently from d35e5a3 to fd52530 Compare September 9, 2022 15:18
@homar homar added the no-release-notes This pull request does not require release notes entry label Sep 9, 2022
@findepi
Copy link
Copy Markdown
Member

findepi commented Sep 9, 2022

Use AllowTableRename in DeltaLakeMetadata

please update the commit and PR titles

Previously MetastoreTypeConfig was passed to
DeltaLakeMetadata and based on the type of the metastore
which was represented as string the runtime decision was made
if table can be renamed or not.
This commit introduces a guice binded instance of boolean
named AllowDeltaLakeManagedTableRename which value is
set based on the used metastore type and which will be used
to make a runtime decision if table can be renamed
@homar homar force-pushed the homar/use_allow_rename_in_deltalake branch from fd52530 to 88e7514 Compare September 10, 2022 08:22
@homar homar changed the title Use AllowTableRename in DeltaLakeMetadata Use AllowDeltaLakeManagedTableRename in DeltaLakeMetadata Sep 10, 2022
@findepi findepi merged commit 4d02e35 into trinodb:master Sep 13, 2022
@github-actions github-actions bot added this to the 396 milestone Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed no-release-notes This pull request does not require release notes entry

Development

Successfully merging this pull request may close these issues.

2 participants