Cannot execute a query when the filter contains all columns

Description

When trying to execute a Test.get(**{pkey: value}) got an exception about a deferred field

Code to reproduce :

Error when executing:

Environment

python 2.7.11 (virtualenv)
cassandra-driver 3.5.0

Pull Requests

None

Activity

Show:
Adam Holmberg
July 6, 2016, 12:30 AM

We can button this error up, but I'm also curious – what is your use case here? Do you query a model that only defines a primary key just to see if it exists?

Aymeric Barantal
July 6, 2016, 1:08 AM

Yes my real model contain a list of reserved user name that I have to check before accepting to create an user.

So only a primary key defined.

Adam Holmberg
July 6, 2016, 1:39 AM

Got it. Not an excuse for this error, but you may want to consider Lightweight transactions instead of read-before-write in the client.

Alan Boudreault
July 7, 2016, 1:56 AM
Greg Bestland
July 16, 2016, 7:00 AM

Test coverage LGTM, sending this to done.

Fixed

Assignee

Unassigned

Reporter

Aymeric Barantal

Fix versions

Labels

Reproduced in

None

PM Priority

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Pull Request

None

Sprint

Py P-NEXT

Affects versions

Priority

Major