QueryBuilder fails to quote keyspace (requires quoting twice)

Description

With the following keyspace and CF:

Keyspace: Metrics
CF: epochs

The QueryBuilder.from(keyspace, cf) appears to require quoting the keyspace name twice to work:

....from("Metrics", "epochs") => SELECT * FROM metrics.epochs

....from(QueryBuilder.quote("Metrics"), "epochs") => SELECT * FROM Metrics.epochs

....from(QueryBuilder.quote(QueryBuilder.quote("Metrics")), "epochs" => SELECT * FROM "Metrics".epochs

Environment

None

Pull Requests

None

Activity

Show:
Alex Popescu
April 29, 2014, 10:26 PM

Attached test to reproduce the issue (it happens only to the keyspace part) and it's not limited to from only.

Sylvain Lebresne
April 30, 2014, 4:54 PM

We did were removing quotes where we should have. Pushed fix for that (and added Alex's unit test).

Assignee

Sylvain Lebresne

Reporter

Mike Heffner

Labels

None

PM Priority

None

Reproduced in

None

Affects versions

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Components

Priority

Major
Configure