You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2022/12/03 16:55:39 UTC

[GitHub] [drill] vvysotskyi commented on issue #2693: Order by expression failed to execute in mysql plugin

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-unsubscribe@drill.apache.org

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