For some queries, the exception did not include the SQL statement. Example: select x from system_range(1, 2) group by 'a'.