0
cassandradb db에 액세스하기 위해 cassandrapython cqlengine을 사용하려고했으나 열이 목록 유형이 아닌 경우 필터링 할 수있었습니다. 당신이 cqlengine의 아주 오래된 (그리고 사용되지 않음) 버전을 사용하는 것 같습니다cqlengine python 모델을 사용하여 cassandra에서 데이터를 가져올 수 없습니다.
d =cClass().filter(lastname='text',age=2,input__contains='a')
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/cqlengine-0.21.0-py3.4.egg/cqlengine/operators.py", line 43,
in get_operator KeyError: 'CONTAINS' During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.4/dist-packages/cqlengine-0.21.0-py3.4.egg/cqlengine/models.py", line 562, in filter
File "/usr/local/lib/python3.4/dist-packages/cqlengine-0.21.0-py3.4.egg/cqlengine/query.py", line 507, in filter
File "/usr/local/lib/python3.4/dist-packages/cqlengine-0.21.0-py3.4.egg/cqlengine/operators.py", line 45,
in get_operator **cqlengine.operators.QueryOperatorException: contains doesn't map to a QueryOperator**
보기 : http://stackoverflow.com/questions/25076283. 나는 그것이 같은 문제라고 생각한다. – rajpy