vvysotskyi commented on issue #2693:
URL: https://github.com/apache/drill/issues/2693#issuecomment-1336197613

   Drill (actually Calcite) rewrites the query to use the expression specified 
in the project in the `GROUP BY` and `ORDER BY` statements. It is done so 
because some databases don't support using select aliases in such statements.
   
   As a workaround, it is possible to disable the `sql_mode` 
`only_full_group_by` policy so that the query will succeed.
   
   Btw MariaDB works fine with such types of queries.


-- 
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: dev-unsubscr...@drill.apache.org

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

Reply via email to