gjacoby126 commented on a change in pull request #1118:
URL: https://github.com/apache/phoenix/pull/1118#discussion_r566146481
##########
File path:
phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
##########
@@ -90,6 +91,113 @@ public void testStartKeyStopKey() throws SQLException {
assertTrue(splits.size() > 0);
}
+ @Test
+ public void testCreateAlterTableWithDuplicateColumn() throws Exception {
+ Properties props = new Properties();
+ int failureCount = 0;
+ int expectedExecCount = 0;
+ String tableName = generateUniqueName();
+ String viewName = generateUniqueName();
+ try (Connection conn = DriverManager.getConnection(getUrl(), props)) {
+ try {
+ conn.createStatement().execute(String.format("CREATE TABLE %s"
Review comment:
nit: Would be good if before each case there was a brief comment
explaining it -- e.g "Same column name, different column type" for the third
one.
----------------------------------------------------------------
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]