JSqlParser icon indicating copy to clipboard operation
JSqlParser copied to clipboard

Fix parsing `ALTER TABLE ... ADD COLUMNS (...)`

Open njaremko opened this issue 1 year ago • 1 comments

The current behaviour fails when it encounters ADD COLUMNS and merges everything in the () into one string with no whitespace.

So ALTER TABLE catalog.table.name ADD COLUMNS (apples int) becomes ALTER TABLE catalog.table.name ADD COLUMNS (applesint).

This commit adds an understanding of ALTER TABLE ... ADD COLUMNS to the grammar.

njaremko avatar Oct 15 '24 19:10 njaremko

Thank you for your contribution, please fix formatting exception by running './gradlew :spotlessApply' to fix these violations.

manticore-projects avatar Oct 16 '24 00:10 manticore-projects

Done

njaremko avatar Oct 23 '24 17:10 njaremko

Thank you for your contribution!

manticore-projects avatar Oct 24 '24 01:10 manticore-projects