Apache Cassandra drivers for variety of programming languages
Questions tagged [cassandra-driver]
88 questions
1
vote
2 answers
How do I create a Table object in Python for an existing Cassandra table?
I have some tables in a keyspace and I want query like ORM in python DataStax driver
I have lots of tables with huge schema. any other method to create a table object without writing the Table class
eg:
if I have a table called…

Alex Jolly
- 11
- 2
1
vote
1 answer
Cassandra driver package in node does not stream all rows from Cassandra table
I am using the Cassandra-driver node package (4.6.3). I am currently trying to migrate data from Cassandra to SQL. There are around 450 000 records, tried using ETL tools like Altryx but that doesn't work as there are unsupported data types like map…

Abhishek
- 155
- 3
- 14
1
vote
0 answers
NestJS testing with Jest custom repository (CassandraDB)
The code I am trying to test the driver / repository for my nodeJS project:
import { Injectable, OnModuleInit } from '@nestjs/common';
import { mapping, types } from 'cassandra-driver';
import { Products } from './poducts.model';
import {…

Ry10p
- 312
- 1
- 2
- 11
1
vote
1 answer
Select and decode blob using python cassandra driver
I am trying to query the traces Cassandra table which is part of the Jaeger architecture. As you can see the refs field is a list:
cqlsh:jaeger_v1_dc1> describe traces
CREATE TABLE jaeger_v1_dc1.traces (
trace_id blob,
span_id bigint,
…

user1912404
- 386
- 4
- 11
- 26
1
vote
2 answers
Save array of objects in cassandra
How can I save array of objects in cassandra?
I'm using a nodeJS application and using cassandra-driver to connect to Cassandra DB. I wanted to save records like below in my db:
{
"id" : "5f1811029c82a61da4a44c05",
"logs" : [
{
…

Tony Mathew
- 880
- 1
- 12
- 35
1
vote
1 answer
Is Cassandra schema-less?
I'm using a NodeJS Application to connect to Cassandra using
cassandra-driver
After playing around with cassandra-driver, I noticed that we have define schema for each table before-hand. Could anyone please help me understand if Schema of every…

Tony Mathew
- 880
- 1
- 12
- 35
1
vote
3 answers
Issue with Spring data cassandra due to Spring boot version upgrade to 2.3.1
Due to the improvements made towards docker image support in 2.3 release of Spring boot, we have decided to migrate to this version. In our project, we are using Cassandra as one of the databases. But it seems that a lot has changed in spring data…

redHalo
- 123
- 2
- 7
1
vote
1 answer
C# Cassandra UDT Mappings Configuration Better Approach
Is there any better way to Write UDTMaps is the same way as Tables using Cassandra Database with C# Driver
Suppose there is a Table called Users(Id, name text, Address frozen )in Cassandra Database.
now to map this to C#
for Tables I can write as…

Akshay Joy
- 1,765
- 1
- 14
- 23
1
vote
2 answers
Cassandra 4.5 driver issue with @Entity and Counter fields
Having a problem with the 4.5 Datastax Cassandra driver. I cannot get any of these @Queries to work:
@Dao
public interface SampleTable2Dao extends BaseDao {
//@Query("UPDATE sampletable2 SET cntrfld = cntrfld + :toAdd WHERE key1 =…

Jason Nethercott
- 373
- 3
- 20
1
vote
1 answer
Problem with Synchronous query execution in cassandra-driver (Node.js)
I'm trying to create at runtime keyspaces and tables inside them using cassandra-driver node implementation maintained by datastax.
On the documentation (here) it's pointed out that there is a sync-way to call the execute() method that should block…

Matteo Sanfelici
- 13
- 4
1
vote
2 answers
How to check the status of cassandra using node.js?
I am using cassandra-driver module in node.js. My usecase is that I have emit notification in the UI saying "DB is in down state" when Cassandra node goes down due to some reason.
Basically, I should be able to capture the information as soon as the…

unnamed-bull
- 361
- 4
- 15
1
vote
2 answers
Pausing cassandra stream for async operations
I want to pause my cassandra stream for some async operations before processing the next row.
Each row is received in a readable event listener. I have tried using stream.pause but it does not in fact pauses the stream.
I have also tried the same…

Naman Gupta
- 155
- 6
1
vote
0 answers
how can i declare a list of map defined types in cassandra
i want to declare a list of objects in cassandra and i have already created the type object
CREATE TYPE profiles.educations (
major text,
end text,
name text,
degree text,
start text,
desce text
);
how can declare a list of…

Chouaieb Sayari
- 23
- 3
1
vote
2 answers
Do I really need to call client.shutdown() when finished with Cassandra in Node.js script?
I've been trying to find information about Cassandra sessions relating to the Node.js cassandra-driver by Datastax. I read something which said that cassandra-driver automatically manages a session and that I don't need to call…

somedbguy12
- 31
- 2
1
vote
1 answer
How to connect Node.js app properly to Cassandra node?
I have two Cassandra nodes hosted on two IPs. Now, when I am connecting to one of those nodes via cassandra-driver in Node.js from Windows, I am getting 'connection timed out' and 'host unreachable' kind of errors. However, I am able to connect to…

awesomemypro
- 531
- 1
- 11
- 32