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_r374719017
 
 

 ##########
 File path: 
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/codegen/GenerateUtils.scala
 ##########
 @@ -570,37 +570,40 @@ object GenerateUtils {
     * Wrapper types can autoboxed to their corresponding primitive type 
(Integer -> int).
     *
     * @param ctx code generator context which maintains various code 
statements.
-    * @param fieldType type of field
-    * @param fieldTerm expression term of field to be unboxed
+    * @param inputType type of field
+    * @param inputTerm expression term of field to be unboxed
+    * @param inputUnboxingTerm unboxing/conversion term
     * @return internal unboxed field representation
     */
   def generateInputFieldUnboxing(
       ctx: CodeGeneratorContext,
-      fieldType: LogicalType,
-      fieldTerm: String): GeneratedExpression = {
+      inputType: LogicalType,
+      inputTerm: String,
+      inputUnboxingTerm: String)
 
 Review comment:
   With the old logic we were performing `.toInternal()` conversion twice. One 
time for the null check and one time for the assignment. This improves the 
runtime 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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to