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
Bogus SqlParser warning for valid ALTER TABLE .. ALTER COLUMN syntax #2573
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)
Thanks for your message, @chernser. jOOQ actually does generate MODIFY COLUMN. I'm not sure anymore why I reported ALTER COLUMN instead. It's documented as an alternative:
Though, the TYPE keyword seems mandatory according to the docs. But it does seem to work also without the TYPE keyword in Dbeaver:
In any case, the specific error reported by the JDBC driver doesn't seem correct. There is some set of ALTER TABLE .. ALTER COLUMN syntax that should be accepted, according to the docs.
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
larshelge commentedon Sep 24, 2025
I am seeing the same for create table statements.
It certainly appears to not indicate a real issue, but is somewhat confusing and noisy.
chernser commentedon Oct 7, 2025
Good day, @lukaseder !
While working on this issue I've found that this form of SQL is not supported by ClickHouse at least it causes error with clickhouse-client:
However another form with
MODIFY COLUMNworks.Syntax is described in documentation https://clickhouse.com/docs/sql-reference/statements/alter/column#modify-column. Will this specifics be handled by JOOQ ?
Thanks!
lukaseder commentedon Oct 7, 2025
Thanks for your message, @chernser. jOOQ actually does generate
MODIFY COLUMN. I'm not sure anymore why I reportedALTER COLUMNinstead. It's documented as an alternative:https://clickhouse.com/docs/sql-reference/statements/alter/column#modify-column
Though, the
TYPEkeyword seems mandatory according to the docs. But it does seem to work also without theTYPEkeyword in Dbeaver:In any case, the specific error reported by the JDBC driver doesn't seem correct. There is some set of
ALTER TABLE .. ALTER COLUMNsyntax that should be accepted, according to the docs.chernser commentedon Oct 27, 2025
Verified in
com.clickhouse.jdbc.internal.BaseSqlParserFacadeTest#testStatementsForResultSet