[~IhorHuzenko] pointed out that
DRILL-6050 can cause submission of queries with incorrect syntax.
For example, when user enters SHOW DATABASES' and after limitation wrapping SELECT * FROM (SHOW DATABASES) LIMIT 10 will be posted.
This results into parsing errors, like:
Query Failed: An Error Occurred org.apache.drill.common.exceptions.UserRemoteException: PARSE ERROR: Encountered "( show" at line 2, column 15. Was expecting one of: <IDENTIFIER> ... .