snuyanzin commented on code in PR #28113:
URL: https://github.com/apache/flink/pull/28113#discussion_r3195220151
##########
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/ExprCodeGenerator.scala:
##########
@@ -462,21 +513,27 @@ class ExprCodeGenerator(ctx: CodeGeneratorContext,
nullableInput: Boolean)
val resultType = FlinkTypeFactory.toLogicalType(call.getType)
// throw exception if json function is called outside JSON_OBJECT or
JSON_ARRAY function
- if (isJsonFunctionOperand(call)) {
+ if (isJsonFunctionOperand(call, if (rexProgram == null) null else
rexProgram.getExprList)) {
Review Comment:
moved to `CodeGenUtils`
--
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]