
Apache Cassandra Query
CertifiedRun a CQL query on Astra DB
Apache Cassandra Query
Run a CQL query on Astra DB
Executes a CQL statement against Astra DB. Use fetchType to control result handling (FETCH, STORE, FETCH_ONE); NONE is the default and only records metrics.
type: io.kestra.plugin.cassandra.astradb.QueryExamples
Send a CQL query to an Astra DB.
id: cassandra_astradb_query
namespace: company.team
tasks:
- id: query
type: io.kestra.plugin.cassandra.astradb.Query
session:
secureBundle: /path/to/secureBundle.zip
keyspace: astradb_keyspace
clientId: astradb_clientId
clientSecret: "{{ secret('ASTRADB_CLIENT_SECRET') }}"
cql: SELECT * FROM CQL_TABLE
fetchType: FETCH
Properties
cql *Requiredstring
CQL query to execute
session *RequiredNon-dynamic
Astra DB session configuration
Connection settings including secure bundle or proxy (choose one), keyspace, and service credentials.
io.kestra.plugin.cassandra.astradb.AstraDbSession
Client ID for Astra DB
Client secret for Astra DB
Astra DB cloud proxy address
Use only when the secure bundle is not provided.
io.kestra.plugin.cassandra.astradb.AstraDbSession-ProxyAddress
1Hostname of the Astra DB server
9042Port of the Astra DB server
Base64-encoded secure connect bundle
Supply the ZIP archive content encoded as base64. Use only when not configuring the proxy address.
fetchType string
NONESTOREFETCHFETCH_ONENONEThe 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.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
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
uriThe url of the result file on kestra storage (.ion file / Amazon Ion text format)
Only populated if 'store' is set to true.