You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JDBC-V2] Statement.execute() returns false for CTE queries #2574
bugjdbcModule: the JDBC driver (jdbc-v2; with legacy: the v1 driver)queriesArea: how the client builds and runs statements (parameters, quoting, batches)sql-parserDetail: the SQL parser of the JDBC driver (v1 and v2)
When com.clickhouse.jdbc.StatementImpl#execute(java.lang.String) is called for query that returns result set then method should return true.
It doesn't happen for such CTE:
WITH
toDate('2025-08-20') as DATE_END
,events AS (
SELECT1
)
SELECT*FROM events
However is works correctly for:
WITH events AS (
WITH toDate('2025-08-20') as DATE_END
SELECT1
)
SELECT*FROM events
select value, toUnixTimestamp(ts)*1000astimestampfrom(selectcount() as value, toStartOfInterval(timestamp, interval 1 day) as ts
from events
wheretimestamp between toDateTime(1736035200) and toDateTime(1751587199)
group by ts
order by ts
with fill
from toDateTime(1736035200) to toDateTime(1751587199)
step interval '1 day');
bugjdbcModule: the JDBC driver (jdbc-v2; with legacy: the v1 driver)queriesArea: how the client builds and runs statements (parameters, quoting, batches)sql-parserDetail: the SQL parser of the JDBC driver (v1 and v2)
Activity
chernser commentedon Oct 27, 2025
Verified with
com.clickhouse.jdbc.StatementSQLTest