Github user ctamisier commented on a diff in the pull request:
https://github.com/apache/flink/pull/5964#discussion_r188717750
--- Diff:
flink-connectors/flink-connector-cassandra/src/main/java/org/apache/flink/streaming/connectors/cassandra/CassandraSink.java
---
@@ -381,6 +393,9 @@ protected void sanityCheck() {
if (query == null || query.length() == 0) {
throw new IllegalArgumentException("Query must
not be null or empty.");
}
+ if (keyspace != null && keyspace.length() != 0) {
--- End diff --
there is a check on query.length() just above, shouldn't we have the same
for the keyspace ?
( .setDefaultKeyspace("") will raise an exception)
---