raminqaf commented on code in PR #29882:
URL: https://github.com/apache/flink/pull/29882#discussion_r4739394099
##########
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/ExprCodeGenerator.scala:
##########
@@ -1177,10 +1203,15 @@ class ExprCodeGenerator(
case ELEMENT =>
val array = operands.head
requireArray(array)
- generateArrayElement(ctx, array)
+ generateArrayElement(ctx, array, resultType)
+
+ case ELEMENT_V1 =>
+ val array = operands.head
+ requireArray(array)
+ generateArrayElement(ctx, array, elementTypeV1(operands, resultType))
case DOT =>
- generateDot(ctx, operands)
+ generateDot(ctx, operands, resultType)
Review Comment:
Done. `DOT` now has `DOT_V1` and `DOT_V2` like `ITEM` and `ELEMENT`, and
case `DOT_V1` passes the field type as before.
No plan contains a `DOT` call today, because Calcite turns `r.f` into a
field access first. So there is no restore test for `DOT_V1`.
--
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]