It seems that Presto needs a custom plugin to have a query logger:
http://dharmeshkakadia.github.io/presto-event-listener/
https://aws.amazon.com/blogs/big-data/custom-log-presto-query-events-on-amazon-emr-for-auditing-and-performance-insights/
We should look into it and add it as soon as possible, otherwise we'll not be able to see what queries cause trouble on workers :(



