Questions tagged [cassandra-driver]

Apache Cassandra drivers for variety of programming languages

88 questions
1
vote
1 answer

Why my cql query with double quotes doesn't work but with single quotes works?

Are double quotes not allowed in cql? running this query works val statement4 = s""" | INSERT INTO users (bucket,email,firstname,lastname,authprovider,password,confirmed,id,hasher,salt) VALUES |…
Manu Chadha
  • 15,555
  • 19
  • 91
  • 184
1
vote
0 answers

Sending object stream as a response in Koa

I want to stream a DB query result directly to the client as an array of objects. DB driver returns a Readable Streams2 stream in object mode, emitting Row instances. Koa only accepts string mode streams. What is the best way to do the conversion…
asliwinski
  • 1,662
  • 3
  • 21
  • 38
1
vote
2 answers

Play Cassandra Netty Server null pointer exception

Hi i am using playframework with technologies like , spark = "2.3.1", akka = "2.4.7" hadoop = "2.7.7" spring = "4.2.6.RELEASE", spark-cassandra-connector 2.0.9 , cassandra-driver-core 3.0.6 i am getting below warning, at the time of project clean…
Swadeshi
  • 1,596
  • 21
  • 33
1
vote
0 answers

Cassandra-driver for python3

I am trying to work on cassandra using dockers and also I need Python to work with it. I tried installing cassandra-driver for Python using pip command. But the driver got installed for python2.7 but I might need to install driver for python3. When…
KSp
  • 1,199
  • 1
  • 11
  • 29
1
vote
2 answers

cassandra huge data reading using java driver

I have to read 3 TB of production data from a Cassandra database. I have implemented paging using java driver but this technique uses offset value which means I am tracing my data all over again to reach a particular row and this process is using…
1
vote
1 answer

DSE cassandra driver for java returning only partial results in async mode

I'm getting only partial set of rows when fetching from cassandra using dse cassandra driver 3.1.4 for java. Also This query is working fine with the earlier version of driver we were using. The earlier version was 2.1.9 Table structure is like…
1
vote
1 answer

Cannot query for particular UUID with Python cassandra-driver

I am trying to extract a particular value from my cassandra database using the Python package cassandra-driver. I have no influence on the data structure. My Python script from cassandra.cluster import Cluster cluster =Cluster() session…
arture
  • 23
  • 1
  • 7
1
vote
0 answers

Manual Pagination in Cassandra

I use the manual pagination feature in Cassandra. client.eachRow(query, params, options, function (n, row) { // Invoked per each row in all the pages console.log("row",row); }, function (err, result) { if(typeof result !==…
Harry
  • 3,072
  • 6
  • 43
  • 100
1
vote
0 answers

paging through cql query on django

I have two queries. One that gives me the first page from a cassandra table, and another one that retrieves the successive pages. The fist one is like : select * from images_by_user where token(iduser) = token(5) limit 10 allow filtering; The…
dlsa
  • 3,402
  • 2
  • 17
  • 17
1
vote
2 answers

Cassandra batch statement delete after insert not inserting for same primay key

Here is my scenario, consider my table has cloumns id primary key and clusterkey cluster key. I want to delete one record falling under primary key and insert new record with same primary key but different cluster key. In this case, all the time it…
1
vote
0 answers

How to get the constructed / executed query from the DataStax Cassandra driver?

I'm using the DataStax Cassandra driver. After the following (example) code: foo_query = 'SELECT * FROM foo_column_family where bar = %(bar_id)s' try: foos = cassandra_session.execute(foo_query, {'bar_id': bar_id}) …
Aditya M P
  • 5,127
  • 7
  • 41
  • 72
1
vote
1 answer

How can I bind dict to Prepared Cassandra Statement in Python?

How can I pass dict and query parameters? I can do such code. prepared = session.prepare('select name from task where id = ?;') bound = prepared.bind([1]) session.execute(bound) How can I use dict as parameters and what will be query syntax? This…
Chameleon
  • 9,722
  • 16
  • 65
  • 127
0
votes
1 answer

Can't connect to Astra DB with Python driver

I believe I'm doing exactly as mentioned in the documentation Python-driver-AstraDB cloud_config= { 'secure_connect_bundle': 'secure-connect-test-warehouse.zip' } logging.basicConfig(level=logging.DEBUG) auth_provider =…
0
votes
1 answer

Which is more efficient between the Cassandra's library query and PySpark's Cassandra query?

I am currently building an ETL on PySpark and in the transformation stage I need to make validations with some of the data saved in a Cassandra table but my approach is making the processing too slow, it processes just 900 records in 30 minutes. The…
0
votes
2 answers

Does cassandra-unit run with JDK 17?

I tried to run an EmbeddedCassandra.startEmbeddedCassandra() in my unit tests (with casandra-unit:4.3.1.0) and after the startEmbeddedCassandra() is called no errors is thrown but is still loading, no timeout added to the method is…