private void validateIndexDefinitions() {
for (Map.Entry<String, Set<String>> entry : copyToMap.entrySet()) {
ColumnIdent columnIdent = ColumnIdent.fromPath(entry.getKey());
if (!columnIdents.contains(columnIdent)) {
throw new ColumnUnknownException(columnIdent.sqlFqn());
}
if (!columnTypes.get(columnIdent).equalsIgnoreCase("string")) {
throw new IllegalArgumentException("INDEX definition only support 'string' typed source columns");
}
}