hannerwang commented on code in PR #2838:
URL: https://github.com/apache/calcite/pull/2838#discussion_r905677079


##########
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:
##########
@@ -6661,6 +6661,11 @@ static class ExtendedExpander extends Expander {
           SqlIdentifier sid = (SqlIdentifier) expr;
           final SqlIdentifier fqId = getScope().fullyQualify(sid).identifier;
           expr = expandDynamicStar(sid, fqId);
+        } else {
+          requireNonNull(expr, "expr");
+          SqlNode exprCopy = expr.clone(expr.getParserPosition());

Review Comment:
   Hi @rubenada , sorry for bothering you, I have found the 
[CALCITE-5145](https://issues.apache.org/jira/browse/CALCITE-5145) is an 
another scenario for wrong type mis-match, I looked the 
[pr-2818](https://github.com/apache/calcite/pull/2818) @yingyuwang submitted 
and found a general solution for the two scenarios, please review when you are 
available.



-- 
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]

Reply via email to