zoudan commented on code in PR #3262:
URL: https://github.com/apache/calcite/pull/3262#discussion_r1241483640
##########
core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java:
##########
@@ -3984,6 +3985,13 @@ public static List sortArray(List list, boolean
ascending) {
return list;
}
+ /** Support the MAP_CONCAT function. */
+ public static Map mapConcat(Map... maps) {
+ final Map result = new LinkedHashMap();
+ Arrays.stream(maps).forEach(result::putAll);
Review Comment:
I have an impression that lambda expressions have performance issues in
certain scenarios in jdk8, but I haven't found clear evidence yet, so it is ok
if you want to keep it.
--
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]