dawidwys commented on a change in pull request #7967: [FLINK-11449][table] Uncouple the Expression class from RexNodes URL: https://github.com/apache/flink/pull/7967#discussion_r264710350
########## File path: flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/api/scala/expressionDsl.scala ########## @@ -1289,7 +1399,7 @@ object map { * Creates a map of expressions. The map will be a map between two objects (not primitives). */ def apply(key: Expression, value: Expression, tail: Expression*): Expression = { - MapConstructor(Seq(key, value) ++ tail.toSeq) + call(MAP, Seq(key, value) ++ tail.toSeq: _*) Review comment: key +: value +: tail.toSeq: _* ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services