capistrant commented on code in PR #12599:
URL: https://github.com/apache/druid/pull/12599#discussion_r891702066
##########
server/src/main/java/org/apache/druid/metadata/SQLMetadataConnector.java:
##########
@@ -765,4 +852,52 @@ public Void withHandle(Handle handle)
log.warn(e, "Exception while deleting records from table");
}
}
+
+ /**
+ * Interrogate table metadata and return true or false depending on the
existance of the indicated column
+ *
+ * @param tableName The table being interrogated
+ * @param columnName The column being looked for
+ * @return boolean indicating the existence of the column in question
+ */
+ private boolean tableHasColumn(String tableName, String columnName)
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]