-
Notifications
You must be signed in to change notification settings - Fork 34
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
Cannot cast CassandraConnection #242
Comments
Hello, I found the issue in if (this.getConnection() instanceof JdbcConnection) {
keyspace = ((CassandraConnection) ((JdbcConnection) this.getConnection()).getUnderlyingConnection()).getSchema();
} I don't know if it's really possible that I tried this solution locally, and it seems to work (using Liquibase in a Spring Boot application with JDK 17). Please note this issue probably makes this version of |
I confirm I'm one of those users :) |
Cast the connection to JdbcConnection, then the underlying connection to CassandraConnection to retrieve the keyspace.
Hello, I created this PR #243 to fix the issue. |
@VincentBrule @pgehl FYI, a version 4.25.0.1 has been released to fix this issue. |
If this issue is not fixed please reopen it. |
Sorry for the delay, everything is working fine, thanks. |
Hello,
I tried to use the latest version of this driver (4.10.2) with the latest version of liquibase-core and liquibase-cassandra (4.25.0). I use SBT (1.9.7) and Java 11.
I haven't managed to replace the old datastax driver with the new one. This is not possible to cast a
CassandraConnection
into aliquibase.database.jvm.JdbcConnection
and vice versa.Previously, settings were made as follows:
After swapping with the ING driver, I updated the above code like this (https://docs.liquibase.com/workflows/liquibase-community/using-liquibase-java-api.html):
And I'm getting the error:
The stack trace is:
The text was updated successfully, but these errors were encountered: