snuyanzin commented on code in PR #28113:
URL: https://github.com/apache/flink/pull/28113#discussion_r3196430198


##########
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/CodeGeneratorContext.scala:
##########
@@ -116,6 +115,24 @@ class CodeGeneratorContext(
   val reusableInputUnboxingExprs: mutable.Map[(String, Int), 
GeneratedExpression] =
     mutable.Map[(String, Int), GeneratedExpression]()
 
+  // map of expressions for shared RexProgram exprList entries that will be 
added only once
+  // exprList index -> expr
+  val reusableLocalRefExprs: mutable.LinkedHashMap[Int, GeneratedExpression] =
+    mutable.LinkedHashMap[Int, GeneratedExpression]()
+
+  // Stack of RexLocalRef cache scopes. The bottom scope IS 
reusableLocalRefExprs and is read

Review Comment:
   added example



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