Github user walterddr commented on a diff in the pull request:
https://github.com/apache/flink/pull/5015#discussion_r151851711
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/api/scala/expressionDsl.scala
---
@@ -705,6 +705,14 @@ trait ImplicitExpressionOperations {
*/
def element() = ArrayElement(expr)
+ /**
+ * Accesses the element of a map based on key.
+ *
+ * @param key key of the element
+ * @return value of the element
+ */
+ def getValue(key: Expression) = MapElementGetValue(expr, key)
--- End diff --
I think that makes perfect sense since both of them utilize ITEM operator
---