swaroopak commented on a change in pull request #798:
URL: https://github.com/apache/phoenix/pull/798#discussion_r436970316
##########
File path:
phoenix-core/src/it/java/org/apache/phoenix/end2end/ParameterizedIndexUpgradeToolIT.java
##########
@@ -169,59 +167,144 @@ private void setClusterProperties() {
private void prepareSetup() throws SQLException {
//inputList is "TEST.MOCK1,TEST1.MOCK2,TEST.MOCK3";
+
+ String mockTableOne = "TEST." + generateUniqueName();
+ TABLE_LIST[0] = mockTableOne;
+ String mockTableTwo = "TEST1." + generateUniqueName();
+ TABLE_LIST[1] = mockTableTwo;
+ String mockTableThree = "TEST." + generateUniqueName();
+ TABLE_LIST[2] = mockTableThree;
+ String multiTenantTable = "TEST." + generateUniqueName();
+ TABLE_LIST[3] = multiTenantTable;
+ INPUT_LIST = StringUtils.join(TABLE_LIST, ",");
if (isNamespaceEnabled) {
- conn.createStatement().execute("CREATE SCHEMA TEST");
- conn.createStatement().execute("CREATE SCHEMA TEST1");
+ TABLE_LIST_NAMESPACE[0] = mockTableOne.replace(".", ":");
+ TABLE_LIST_NAMESPACE[1] = mockTableTwo.replace(".", ":");
+ TABLE_LIST_NAMESPACE[2] = mockTableThree.replace(".", ":");
+ TABLE_LIST_NAMESPACE[3] = multiTenantTable.replace(".", ":");
+ conn.createStatement().execute("CREATE SCHEMA IF NOT EXISTS TEST");
+ conn.createStatement().execute("CREATE SCHEMA IF NOT EXISTS
TEST1");
}
- conn.createStatement().execute("CREATE TABLE TEST.MOCK1 (id bigint NOT
NULL "
+
+
+
Review comment:
nit: extra lines
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]