Github user twdsilva commented on a diff in the pull request:
https://github.com/apache/phoenix/pull/355#discussion_r220420145
--- Diff:
phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java ---
@@ -3300,6 +3281,134 @@ private void mutateStringProperty(String tenantId,
String schemaName, String tab
}
}
+ public MutationState modifyColumn(ModifyColumnStatement statement)
throws SQLException {
+ PTable table = FromCompiler.getResolver(statement,
connection).getTables().get(0).getTable();
+ ColumnDef columnDef = statement.getColumnDef();
+ ColumnName columnName =columnDef.getColumnDefName();
+
+ // we can not modify index table/system table and project table.
+ if (table.getType() != PTableType.TABLE && table.getType() !=
PTableType.VIEW) {
--- End diff --
just check if the type is TABLE or VIEW
---