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

AWS Keyspaces do not support COUNT #1064

Closed
alniks opened this issue Dec 29, 2020 · 1 comment
Closed

AWS Keyspaces do not support COUNT #1064

alniks opened this issue Dec 29, 2020 · 1 comment

Comments

@alniks
Copy link

alniks commented Dec 29, 2020

It's used internally by migrator to check if the version table exists:

boolean versionTableExists() {
        try {
            countMigrations(getTableName());
        } catch (Exception e) {
            return false;
        }
        return true;
    }

in case of AWS Keyspaces the above method will always return false and migrator will try to create version table, which will lead to an exception.

One option is to use [ IF NOT EXISTS ] clause for Cassandra DB and do not check existence of the table:

CREATE TABLE [ IF NOT EXISTS ] table_name

@ipolevoy
Copy link
Member

TODO: cherry-pick to master after verification that this is resolving the Keyspaces issue.

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

No branches or pull requests

2 participants