Skip to content

Conversation

@krvikash
Copy link
Contributor

@krvikash krvikash commented Jan 14, 2023

HiveTableOperations and NessieTableOperations were already handling this case, but other table operations are missing this case.

Follow up of #6512 (comment)

@krvikash krvikash changed the title Avoid creating new metadata file when registerTable API is used Aws, Core, Dell, Hive, Nessie : Avoid creating new metadata file when registerTable API is used Jan 14, 2023
@krvikash krvikash changed the title Aws, Core, Dell, Hive, Nessie : Avoid creating new metadata file when registerTable API is used Aws, Core, Dell, Hive, Nessie: Avoid creating new metadata file when registerTable API is used Jan 14, 2023
@krvikash krvikash force-pushed the avoid-creating-new-metadata-file-in-register-table branch from c8cb001 to f597ce3 Compare January 14, 2023 23:08
Copy link
Member

@ajantha-bhat ajantha-bhat left a comment

Choose a reason for hiding this comment

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

LGTM.

PR description can be simplified by just keeping Core: instead of all the modules.

@krvikash krvikash changed the title Aws, Core, Dell, Hive, Nessie: Avoid creating new metadata file when registerTable API is used Core: Avoid creating new metadata file when registerTable API is used Jan 17, 2023
@krvikash krvikash force-pushed the avoid-creating-new-metadata-file-in-register-table branch from f597ce3 to cda5a05 Compare January 17, 2023 16:46
Copy link
Member

@szehon-ho szehon-ho left a comment

Choose a reason for hiding this comment

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

Makes sense to me, left some style comments

HiveTableOperations and NessieTableOperations were already handling this case,
but other table operations are missing this case.
@krvikash krvikash force-pushed the avoid-creating-new-metadata-file-in-register-table branch from cda5a05 to 85aaf12 Compare January 21, 2023 20:24
Copy link
Member

@szehon-ho szehon-ho left a comment

Choose a reason for hiding this comment

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

Thanks for addressing the comments. One more small one, and if it is not too much trouble, could we add a unit test in TestHiveCatalog for it for registerTable?

@krvikash krvikash force-pushed the avoid-creating-new-metadata-file-in-register-table branch from cc1e34d to ccc8666 Compare January 23, 2023 19:16
@szehon-ho
Copy link
Member

Thanks @krvikash looks good to me, just wanted to see if we can add a test in TestHiveCatalog? (Ignore if you read already and still working on it)

@krvikash
Copy link
Contributor Author

Thanks, @szehon-ho for reviewing. Sorry, I missed adding a test case in TestHiveCatalog. I have added it now.

Copy link
Member

@szehon-ho szehon-ho left a comment

Choose a reason for hiding this comment

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

Thanks for adding test, one comment about that

@krvikash krvikash force-pushed the avoid-creating-new-metadata-file-in-register-table branch 2 times, most recently from 5dca53e to b146e87 Compare January 25, 2023 06:28
@krvikash krvikash force-pushed the avoid-creating-new-metadata-file-in-register-table branch from b146e87 to 05cccd6 Compare January 25, 2023 06:28
@szehon-ho
Copy link
Member

Thanks for last changes, Ill commit this tomorrow unless there's more comments.

@krvikash
Copy link
Contributor Author

Thanks, @szehon-ho | @ajantha-bhat for reviewing the PR.

@szehon-ho szehon-ho merged commit 81bf8d3 into apache:master Jan 25, 2023
@szehon-ho
Copy link
Member

Merged, thanks @krvikash for change, @ajantha-bhat for review

@krvikash krvikash deleted the avoid-creating-new-metadata-file-in-register-table branch January 25, 2023 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants