You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/01/31 11:08:08 UTC

[GitHub] [flink] twalthr commented on a change in pull request #10960: [FLINK-15487][table] Update code generation for new type inference

twalthr commented on a change in pull request #10960: [FLINK-15487][table] Update code generation for new type inference
URL: https://github.com/apache/flink/pull/10960#discussion_r373427946
 
 

 ##########
 File path: flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/codegen/CodeGenUtils.scala
 ##########
 @@ -118,6 +119,17 @@ object CodeGenUtils {
     */
   def className[T](implicit m: Manifest[T]): String = m.runtimeClass.getCanonicalName
 
+  /**
+   * Returns a term for representing the given class in Java code.
+   */
+  def typeTerm(clazz: Class[_]): String = {
 
 Review comment:
   Canonical name get be null. Class.getName always returns a value.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services