JingsongLi commented on a change in pull request #8730: 
[FLINK-12834][table-planner-blink] Support CharType and BinaryType
URL: https://github.com/apache/flink/pull/8730#discussion_r296147174
 
 

 ##########
 File path: 
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/typeutils/TypeCheckUtils.scala
 ##########
 @@ -52,9 +52,14 @@ object TypeCheckUtils {
     case _ => false
   }
 
-  def isVarchar(dataType: LogicalType): Boolean = dataType.getTypeRoot == 
VARCHAR
+  def isCharacterString(dataType: LogicalType): Boolean =
+    
dataType.getTypeRoot.getFamilies.contains(LogicalTypeFamily.CHARACTER_STRING)
 
 Review comment:
   I will just rewrite it to java and move it to runtime module.
   It is not user interface, I think we should keep it in planner.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to