xuzifu666 commented on code in PR #4939:
URL: https://github.com/apache/calcite/pull/4939#discussion_r3238668362
##########
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:
##########
@@ -903,6 +986,82 @@ private void
throwIfExcludeEliminatesAllColumns(List<SqlIdentifier> excludeIdent
}
}
+ private static Map<String, SqlNode> extractReplaceMap(@Nullable SqlNodeList
replaceList) {
+ if (replaceList == null) {
+ return ImmutableMap.of();
+ }
+ final ImmutableMap.Builder<String, SqlNode> builder =
ImmutableMap.builder();
+ for (SqlNode node : replaceList) {
+ if (node instanceof SqlCall) {
Review Comment:
Here I have added the relevant assertions.
--
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]