snuyanzin commented on code in PR #27347:
URL: https://github.com/apache/flink/pull/27347#discussion_r2622401135
##########
flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/SqlParseUtils.java:
##########
@@ -87,7 +87,11 @@ public static Map<String, String> extractMap(@Nullable
SqlNodeList propList) {
}
return propList.getList().stream()
.map(p -> (SqlTableOption) p)
- .collect(Collectors.toMap(k -> k.getKeyString(),
SqlTableOption::getValueString));
+ .collect(
+ Collectors.toMap(
+ k -> k.getKeyString(),
+ SqlTableOption::getValueString,
+ (v1, v2) -> v2));
Review Comment:
Since by default java throws exception about duplicated keys...
--
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]