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

Update error - Impala #19

Open
gsuetugo opened this issue Apr 1, 2021 · 2 comments
Open

Update error - Impala #19

gsuetugo opened this issue Apr 1, 2021 · 2 comments

Comments

@gsuetugo
Copy link

gsuetugo commented Apr 1, 2021

Hey,

I'm trying to run the update command on a liquibase 4.3.2 version using the impala driver created by maven command, but gets on the same error:

Unexpected error running Liquibase: [Cloudera]ImpalaJDBCDriver ERROR processing query/statement. Error Code: 0, SQL state: TStatus(statusCode:ERROR_STATUS, sqlState:HY000, errorMessage:AnalysisException: Syntax error in line 1:
... VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRI...

There is any way to alter the databasechangeloglock configuration?

@smoltis
Copy link

smoltis commented Feb 2, 2022

Hi @gsuetugo,
If you use Impala and Kudu the tables definition is as follows but you can adjust for your infrastructure accordingly:

CREATE TABLE DATABASECHANGELOGLOCK (ID INT, LOCKED BOOLEAN, LOCKGRANTED timestamp, LOCKEDBY STRING);

CREATE TABLE DATABASECHANGELOG (ID STRING, AUTHOR STRING, FILENAME STRING, DATEEXECUTED timestamp, ORDEREXECUTED INT, EXECTYPE STRING, MD5SUM STRING, DESCRIPTION STRING, COMMENTS STRING, TAG STRING, LIQUIBASE STRING, CONTEXTS STRING, LABELS STRING, DEPLOYMENT_ID STRING, PRIMARY KEY(ID)) 
STORED AS KUDU TBLPROPERTIES ('kudu.num_tablet_replicas' = '1');

It seems the author has abandoned this project. So we're on our own.

@ariza84
Copy link

ariza84 commented Oct 8, 2023

Hi,

In which part of the code we can overwrite these statements (CREATE TABLE DATABASECHANGELOGLOCK && CREATE TABLE DATABASECHANGELOG) so that they are not created by Liquibase?

Thank you,
Javi

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

No branches or pull requests

3 participants