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

Use jUnit5 based HiveMetastoreExtension with HiveTests, remove HiveMetastoeTest #2

Closed
wants to merge 5 commits into from

Conversation

nk1506
Copy link
Owner

@nk1506 nk1506 commented Nov 2, 2023

No description provided.

@@ -60,8 +66,23 @@ public class HiveCreateReplaceTableTest extends HiveMetastoreTest {

private String tableLocation;

@RegisterExtension
public static final HiveMetastoreExtension HIVE_METASTORE_EXTENSION =
Copy link

Choose a reason for hiding this comment

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

this should be private

Copy link
Owner Author

Choose a reason for hiding this comment

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

I made public as per reference

Copy link

Choose a reason for hiding this comment

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

The reference you pointed to defines the RegisterExtension interface via public @interface RegisterExtension but that doesn't mean we need to make it public here where it is used. That being said, it should be defined private here and in all other places (similar to how it's defined in the TestHiveCatalog from your other PR

public static final HiveMetastoreExtension HIVE_METASTORE_EXTENSION =
new HiveMetastoreExtension(DB_NAME, Collections.emptyMap());

protected HiveCatalog catalog;
Copy link

Choose a reason for hiding this comment

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

should be private

Copy link

Choose a reason for hiding this comment

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

please also align all other tests the same way

@nk1506 nk1506 force-pushed the hive_tests_rf_fp branch 2 times, most recently from 40de512 to 3e5b450 Compare November 2, 2023 16:56
@nk1506 nk1506 force-pushed the hive_tests_refactor branch 2 times, most recently from 5fdb2f5 to 13e4a4f Compare November 25, 2023 02:42
@nk1506 nk1506 force-pushed the hive_tests_refactor branch 6 times, most recently from e95be19 to 7174c7f Compare December 13, 2023 15:08
@nk1506 nk1506 closed this Dec 13, 2023
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.

2 participants