Github user twalthr commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4940#discussion_r152918458
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/api/TableEnvironment.scala
 ---
    @@ -985,14 +985,11 @@ abstract class TableEnvironment(val config: 
TableConfig) {
         }
     
         // code generate MapFunction
    -    val generator = new FunctionCodeGenerator(
    -      config,
    -      false,
    -      inputTypeInfo,
    -      None,
    -      None)
    -
    -    val conversion = generator.generateConverterResultExpression(
    +    val ctx = CodeGeneratorContext()
    +    val exprGenerator = new ExprCodeGenerator(ctx, false, 
config.getNullCheck)
    --- End diff --
    
    Should we move the `nullableInput` to `bindInput`. If an input is not 
required why should this flag be required? We can also add an default `false` 
value.


---

Reply via email to