MEDIARITHMICS / liquibase-clickhouse

Apache License 2.0
43 stars 39 forks source link

Bug: syntax error: failed at position 35 ('-') #33

Closed epm-dev-priporov closed 1 year ago

epm-dev-priporov commented 1 year ago

if clickhouse db/scheme contains special characte, in our case it is '-', then it fails.

Caused by: ru.yandex.clickhouse.except.ClickHouseUnknownException: ClickHouse exception, code: 1002, host: 127.0.0.1, port: 8123; Code: 62. DB::Exception: Syntax error: failed at position 35 ('-'): -db.DATABASECHANGELOGLOCK ON CLUSTER '{cluster}' (ID Int64,LOCKED UInt8,LOCKGRANTED Nullable(DateTime64),LOCKEDBY Nullable(String)) ENGINE ReplicatedMergeTree(. Expected one of: token, Dot, UUID, ON, OpeningRoundBracket, storage definition, ENGINE, PARTITION BY, PRIMARY KEY, ORDER BY, SAMPLE BY, TTL, SETTINGS, AS, COMMENT, INTO OUTFILE, FORMAT, end of query. (SYNTAX_ERROR) (version 22.2.2.1)

epm-dev-priporov commented 1 year ago

@igorepim could you please review the PR?