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

Uppercase in keyspace #66

Open
momohuri opened this issue Mar 1, 2014 · 1 comment
Open

Uppercase in keyspace #66

momohuri opened this issue Mar 1, 2014 · 1 comment

Comments

@momohuri
Copy link

momohuri commented Mar 1, 2014

Hey,
When I do that :
var client = new cql.Client({hosts: ['myHost'], keyspace: 'Sources_RAW'});

I have the following error : message: 'Keyspace 'sources_raw' does not exist',

I needed to re-create my keyspace lowercase for it to work (I am using cassandra 1.12)

And I am sure that the problem come from node-cassandra-cql because I ve tried with cassandra-client and it worked.

Thanks

@jorgebay
Copy link
Owner

jorgebay commented Mar 1, 2014

The driver does not transform the keyspace casing in any way, Cassandra does.

Apparently, you created the keyspace case sensitive (probably with another driver), you can read a full thread about it.

In this case, you could use double quotes on the keyspace name to avoid Cassandra from lower casing it.

var client = new cql.Client({hosts: ['myHost'], keyspace: '"Sources_RAW"'});

I would avoid using case sensitive identifiers for keyspaces and column families when possible...

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

2 participants