gjacoby126 commented on a change in pull request #935: URL: https://github.com/apache/phoenix/pull/935#discussion_r521481685
########## File path: phoenix-core/src/main/java/org/apache/phoenix/coprocessor/AddColumnMutator.java ########## @@ -399,6 +401,19 @@ public MetaDataMutationResult validateAndAddMetadata(PTable table, byte[][] rowK rowKeyMetaData[TABLE_NAME_INDEX]))); } } + if (isAddingColumns) { + //We're changing the application-facing schema by adding a column, so update the DDL + // timestamp + long serverTimestamp = EnvironmentEdgeManager.currentTimeMillis(); + additionalTableMetadataMutations.add(MetaDataUtil.getLastDDLTimestampUpdate(tableHeaderRowKey, + clientTimeStamp, serverTimestamp)); + for (PTable viewTable : childViews) { Review comment: Will make sure to exempt diverged columns, thanks for pointing that out. ---------------------------------------------------------------- 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: us...@infra.apache.org