eskabetxe commented on code in PR #161:
URL: https://github.com/apache/bahir-flink/pull/161#discussion_r1062260924


##########
flink-connector-kudu/src/main/java/org/apache/flink/connectors/kudu/connector/KuduFilterInfo.java:
##########
@@ -65,7 +65,7 @@ private KuduPredicate predicateComparator(ColumnSchema 
column) {
 
         switch (column.getType()) {
             case STRING:
-                predicate = KuduPredicate.newComparisonPredicate(column, 
comparison, (String) this.value);
+                predicate = KuduPredicate.newComparisonPredicate(column, 
comparison, String.valueOf(this.value));

Review Comment:
   this is changing the behaviour a lot no? 
   for example a number that previous will fail now will be correct..
   
   Shouldn't we just check if it is a BinaryStringData (or StringData) and if 
so, transforme it to string, otherwise leave the previous code?



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