You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/07/26 01:05:30 UTC

[GitHub] [pinot] Jackie-Jiang opened a new issue, #9104: Consider not performing alias rewrite to the rest of the query when alias is a column name

Jackie-Jiang opened a new issue, #9104:
URL: https://github.com/apache/pinot/issues/9104

   E.g. `SELECT SUM(a) AS a WHERE a > 10` will throw exception because it will be rewritten to `SELECT SUM(a) AS a WHERE SUM(A) > 10`
   
   Also, seems alias is not allowed in `WHERE` clause in standard SQL: https://docs.oracle.com/cd/E17952_01/mysql-5.7-en/problems-with-alias.html.
   Not sure if we should block alias rewrite in `WHERE` clause because it can cause backward incompatible.


-- 
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: commits-unsubscribe@pinot.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


[GitHub] [pinot] Jackie-Jiang commented on issue #9104: Consider not performing alias rewrite to the rest of the query when alias is a column name

Posted by GitBox <gi...@apache.org>.
Jackie-Jiang commented on issue #9104:
URL: https://github.com/apache/pinot/issues/9104#issuecomment-1194849974

   cc @xiangfu0 for some input


-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org