in src/main/java/com/microsoft/azure/kusto/kafka/connect/sink/KustoSinkTask.java [345:355]
private boolean isIngestorRole(TopicToTableMapping testMapping, Client engineClient) {
try {
engineClient.execute(testMapping.getDb(), String.format(FETCH_TABLE_COMMAND, testMapping.getTable()), validateOnlyClientRequestProperties);
} catch (DataServiceException | DataClientException err) {
if (err.getCause().getMessage().contains("Forbidden:")) {
log.warn("User might have ingestor privileges, table validation will be skipped for all table mappings ");
return false;
}
}
return true;
}