mihaibudiu commented on code in PR #4912:
URL: https://github.com/apache/calcite/pull/4912#discussion_r3162036907
##########
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java:
##########
@@ -7530,7 +7531,7 @@ private SqlNode expandExprFromJoin(SqlJoin join,
SqlIdentifier identifier, Selec
final SqlIdentifier exp =
new SqlIdentifier(
ImmutableList.of(child.name, name),
- identifier.getParserPosition());
+ SqlParserPos.ZERO);
Review Comment:
This does not look like a robust way to carry information between
compilation stages; in general, the parser position is best-effort in Calcite.
There must be a better way to do this. My intuition tells me that the
unparser has to handle this case by stripping out the qualifying information.
Alternatively, can the join type be changed to an INNER JOIN?
--
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]