-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add more tests for PHOENIX-6247 #1192
Conversation
💔 -1 overall
This message was automatically generated. |
try (HBaseAdmin admin = conn.unwrap(PhoenixConnection.class).getQueryServices() | ||
.getAdmin()) { | ||
|
||
assertEquals(false, admin.tableExists(TableName.valueOf(fullTableHName))); |
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.
Aren't you already doing this check in test_bothTableAndIndexHaveDifferentNames which you just called?
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.
You are right. Removing
|
||
// Drop row and check | ||
conn.createStatement().execute("ALTER TABLE " + fullTableName + " DROP COLUMN NEW_COLUMN_1"); | ||
|
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.
Looks like we drop but don't check as the comment says we will? Or is the lack of an exception the only check we need here?
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.
Will update the comment. Yes lack of exception
b8a8fcd
to
15c3106
Compare
💔 -1 overall
This message was automatically generated. |
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.
+1, thanks @gokceni
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.
LGTM
@@ -973,6 +976,25 @@ private PTable getTable(byte[] tenantId, byte[] schemaName, byte[] tableName, lo | |||
return table; | |||
} | |||
|
|||
private PName getPhysicalTableName(Region region, byte[] tenantId, byte[] schema, byte[] table, long timestamp) throws IOException { |
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.
You think adding this to SchemaUtil make any sense. I see a lot of implementation of getPhysicalTableName there
Thanks @gokceni. Is PR against master branch open? |
@virajjasani I merged all of these on master and 4.x Closing |
No description provided.