Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3748#discussion_r113776064
  
    --- Diff: 
flink-connectors/flink-connector-cassandra/src/main/java/org/apache/flink/streaming/connectors/cassandra/CassandraSink.java
 ---
    @@ -335,6 +340,30 @@ protected void sanityCheck() {
                }
        }
     
    +   public static class CassandraRowSinkBuilder<IN extends Row> extends 
CassandraSinkBuilder<IN> {
    +           public CassandraRowSinkBuilder(DataStream<IN> input, 
TypeInformation<IN> typeInfo, TypeSerializer<IN> serializer) {
    +                   super(input, typeInfo, serializer);
    +           }
    +
    +           @Override
    +           protected void sanityCheck() {
    +                   super.sanityCheck();
    +                   if (query == null || query.length() == 0) {
    +                           throw new IllegalArgumentException("Query must 
not be null or empty.");
    +                   }
    +           }
    +
    +           @Override
    +           public CassandraSink<IN> build() throws Exception {
    +                   sanityCheck();
    +                   if (isWriteAheadLogEnabled) {
    +                           throw new UnsupportedOperationException();
    --- End diff --
    
    Please add an error message here.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to