Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snowflake on JDK17 fails with "Object 'DATABASECHANGELOGLOCK' already exists." #3000

Closed
nvoxland opened this issue Jun 23, 2022 · 3 comments · Fixed by #3019
Closed

Snowflake on JDK17 fails with "Object 'DATABASECHANGELOGLOCK' already exists." #3000

nvoxland opened this issue Jun 23, 2022 · 3 comments · Fixed by #3019

Comments

@nvoxland
Copy link
Contributor

Environment

Liquibase Version: 4.12.0

Database Vendor & Version: Snowflake

Description

Running any operation that needs a database lock will fail with Object 'DATABASECHANGELOGLOCK' already exists. [Failed SQL: (2002) CREATE TABLE DATABASECHANGELOGLOCK (ID INT NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TIMESTAMP_NTZ, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID))]

Additional Context

The issue is with the snowflake jdbc driver. The "arrow" query result format that is the new default has issues. snowflakedb/snowflake-jdbc#533 Adding &JDBC_QUERY_RESULT_FORMAT=JSON to your url will switch the format back to JSON and avoid the issue.

Hopefully the new driver version which fixes the issue with arrow will be out soon.

@nvoxland
Copy link
Contributor Author

The 3.13.20 driver upgrade doesn't seem to solve the issue, despite it shipping with the new arrow code. #3001

@nvoxland nvoxland added this to the NEXT milestone Jun 24, 2022
@OleksandrSankin
Copy link

Got the same issue with Liquibase 4.9.1, postgres-jdbc 42.3.6, JDK 17

@OleksandrSankin
Copy link

I found that I specified wrong defaultSchemaName in liquibase-maven-plugin. That was the cause of this error in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants