Query a Cassandra database with CQL.
type: "io.kestra.plugin.cassandra.standard.Query"
Examples
Send a CQL query to a Cassandra database.
id: cassandra_standard_query
namespace: company.team
tasks:
- id: query
type: io.kestra.plugin.cassandra.standard.Query
session:
endpoints:
- hostname: localhost
secureConnection:
truststorePath: path to .crt file
truststorePassword: truststore_password
keystorePath: path to .jks file
keystorePassword: keystore_password
username: cassandra_user
password: cassandra_passwd
cql: SELECT * FROM CQL_KEYSPACE.CQL_TABLE
fetchType: FETCH
Properties
cql *Requiredstring
CQL query to execute.
session *RequiredNon-dynamicCassandraDbSession
The session connection properties.
fetchType string
NONE
STORE
FETCH
FETCH_ONE
NONE
The way you want to store data.
FETCH_ONE - output the first row. FETCH - output all rows as output variable. STORE - store all rows to a file. NONE - do nothing.
Outputs
bytes integer
The size of the binary response in bytes.
row object
Map containing the first row of fetched data
Only populated if 'fetchOne' parameter is set to true.
rows array
Lit of map containing rows of fetched data
Only populated if 'fetch' parameter is set to true.
size integer
The size of the fetched rows
Only populated if 'store' or 'fetch' parameter is set to true.
uri string
uri
The url of the result file on kestra storage (.ion file / Amazon Ion text format)
Only populated if 'store' is set to true.
Definitions
io.kestra.plugin.cassandra.standard.CassandraDbSession-SecureConnection
keystorePassword string
Password for the keystore file.
keystorePath string
Path to the keystore file. (*.jks)
truststorePassword string
Password for the truststore file.
truststorePath string
Path to the truststore file. (.crt)
io.kestra.plugin.cassandra.standard.CassandraDbSession-Endpoint
hostname *Requiredstring
1
The hostname of the Cassandra server.
port integerstring
9042
The port of the Cassandra server.
serverName string
The SNI server name.
In the context of Cloud, this is the string representation of the host ID.
io.kestra.plugin.cassandra.standard.CassandraDbSession
applicationName string
The name of the application using the created session.
It will be sent in the STARTUP protocol message, under the key APPLICATION_NAME
, for each new connection established by the driver. Currently, this information is used by Insights monitoring (if the target cluster does not support Insights, the entry will be ignored by the server).
localDatacenter string
Specifies the datacenter that is considered "local" by the load balancing policy.
password string
Plaintext authentication password.
secureConnection CassandraDbSession-SecureConnection
Secure connection details.
username string
Plaintext authentication username.