-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
@@ -60,8 +66,23 @@ public class HiveCreateReplaceTableTest extends HiveMetastoreTest { | |||
|
|||
private String tableLocation; | |||
|
|||
@RegisterExtension | |||
public static final HiveMetastoreExtension HIVE_METASTORE_EXTENSION = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be private
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be private
There was a problem hiding this comment.
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
40de512
to
3e5b450
Compare
3e5b450
to
0da58c5
Compare
5fdb2f5
to
13e4a4f
Compare
e95be19
to
7174c7f
Compare
No description provided.