MartijnVisser commented on code in PR #56:
URL: 
https://github.com/apache/flink-connector-cassandra/pull/56#discussion_r4669372534


##########
flink-connector-cassandra/src/main/java/org/apache/flink/streaming/connectors/cassandra/CassandraSink.java:
##########
@@ -233,23 +221,19 @@ public static <IN> CassandraSinkBuilder<IN> 
addSink(DataStream<IN> input) {
                             rowInput.getType(),
                             rowInput.getType()
                                     .createSerializer(
-                                            
rowInput.getExecutionEnvironment().getConfig()));
+                                            rowInput.getExecutionEnvironment()
+                                                    .getConfig()
+                                                    .getSerializerConfig()));
         }
         if (typeInfo instanceof PojoTypeInfo) {
             return new CassandraPojoSinkBuilder<>(
                     input,
                     input.getType(),
-                    
input.getType().createSerializer(input.getExecutionEnvironment().getConfig()));
-        }
-        if (typeInfo instanceof CaseClassTypeInfo) {
-            DataStream<Product> productInput = (DataStream<Product>) input;
-            return (CassandraSinkBuilder<IN>)
-                    new CassandraScalaProductSinkBuilder<>(
-                            productInput,
-                            productInput.getType(),
-                            productInput
-                                    .getType()
-                                    
.createSerializer(input.getExecutionEnvironment().getConfig()));
+                    input.getType()
+                            .createSerializer(
+                                    input.getExecutionEnvironment()
+                                            .getConfig()
+                                            .getSerializerConfig()));
         }
         throw new IllegalArgumentException(
                 "No support for the type of the given DataStream: " + 
input.getType());

Review Comment:
   Done, it now lists Tuple, Row and POJO.



##########
pom.xml:
##########
@@ -42,7 +42,7 @@ under the License.
        </scm>
 
        <properties>
-               <flink.version>1.20.0</flink.version>
+               <flink.version>2.3.0</flink.version>

Review Comment:
   Agreed, I'll add to the release note that there is no release for Flink 2.0 
to 2.2.



-- 
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]

Reply via email to