capistrant commented on code in PR #12599:
URL: https://github.com/apache/druid/pull/12599#discussion_r891701895
##########
server/src/main/java/org/apache/druid/metadata/SQLMetadataConnector.java:
##########
@@ -408,6 +447,50 @@ tableName, getSerialType(), getPayloadType()
);
}
+ /**
+ * Adds the last_used column to the Druid segment table.
+ *
+ * This is public due to allow the UpdateTables cli tool to use for upgrade
prep.
+ */
+ @Override
+ public void alterSegmentTableAddLastUsed()
+ {
+ String tableName = tablesConfigSupplier.get().getSegmentsTable();
+ if (!tableHasColumn(tableName, "last_used")) {
Review Comment:
what if table doesn't exist?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]