gjacoby126 commented on a change in pull request #1216:
URL: https://github.com/apache/phoenix/pull/1216#discussion_r626170402



##########
File path: 
phoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java
##########
@@ -1166,6 +1166,31 @@ public void testTableDescriptorPriority() throws 
SQLException, IOException {
         }
     }
 
+    @Test
+    public void testCreateTableSchemaVersion() throws Exception {
+        Properties props = new Properties();
+        final String schemaName = generateUniqueName();
+        final String tableName = generateUniqueName();
+        final String version = "V1.0";
+        try (Connection conn = DriverManager.getConnection(getUrl(), props)) {
+            testCreateTableSchemaVersionHelper(conn, schemaName, tableName, 
version);
+        }
+    }
+
+    public static void testCreateTableSchemaVersionHelper(Connection conn, 
String schemaName, String tableName,
+                                                          String 
dataTableVersion)
+            throws Exception {
+        final String dataTableFullName = SchemaUtil.getTableName(schemaName, 
tableName);
+        String ddl =
+                "CREATE TABLE " + dataTableFullName + " (\n" + "ID1 
VARCHAR(15) NOT NULL,\n"

Review comment:
       As @swaroopak points out, it's a pain to have to do the extra ALTER 
TABLE SET SCHEMA_VERSION statement after doing an add/drop column, so it would 
be nice if we could update this property as part of doing the add or drop. I'll 
see if I can figure out the cause of why the existing restriction is there, and 
if it can be easily set aside. 




-- 
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]


Reply via email to