SandishKumarHN commented on issue #7545:
URL: https://github.com/apache/pinot/issues/7545#issuecomment-941146912
@elonazoulay looks like it doesn't hang for me. it throws a proper error
message.
```
select cast(runs as long) as runs from baseballStats limit 10
```
```
org.apache.pinot.sql.parsers.SqlCompilationException: Alias runs cannot be
referred in SELECT Clause
at
org.apache.pinot.sql.parsers.CalciteSqlParser.matchIdentifierInAliasMap(CalciteSqlParser.java:156)
at
org.apache.pinot.sql.parsers.CalciteSqlParser.matchIdentifierInAliasMap(CalciteSqlParser.java:148)
at
org.apache.pinot.sql.parsers.CalciteSqlParser.matchIdentifierInAliasMap(CalciteSqlParser.java:144)
at
org.apache.pinot.sql.parsers.CalciteSqlParser.validateSelectionClause(CalciteSqlParser.java:135))
```
please correct me, if I'm missing anything here.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]