DataGrip 2020.3.2 won't run Presto queries having `WITH` statements

DataGrip 2020.3.2 runs Presto SQL queries with a single statement

SELECT *
FROM my_table
LIMIT 20

but won't run queries with multiple CTEs such as 

WITH

cte_1 AS (
...
),

cte_2 AS (
...
),

cte_3 AS (
...
)

SELECT *
FROM cte_3

This used to work perfectly in older versions. Some colleagues mentioned it works until 2020.1.5 then it breaks. 

I have "Generic SQL" as the selected dialect but the queries are run against a Presto cluster.

The query execution settings are shown below

 

Please sign in to leave a comment.