
Azure Queries
CertifiedExecute multiple SQL statements against Azure HorizonDB
Azure Queries
Execute multiple SQL statements against Azure HorizonDB
Runs a sequence of semicolon-separated SQL statements over a single JDBC connection and returns per-statement outputs in order.
type: io.kestra.plugin.azure.horizondb.QueriesExamples
id: horizondb_queries
namespace: company.team
inputs:
- id: host
type: STRING
tasks:
- id: queries
type: io.kestra.plugin.azure.horizondb.Queries
host: "{{ inputs.host }}"
port: 5432
database: mydb
username: "{{ secret('HORIZONDB_USERNAME') }}"
password: "{{ secret('HORIZONDB_PASSWORD') }}"
sql: |
DELETE FROM staging WHERE loaded_at < now() - INTERVAL '1 day';
INSERT INTO target SELECT * FROM staging;
fetchType: NONE
Properties
database *Requiredstring
Database name
host *Requiredstring
HorizonDB server host
Hostname of the Azure HorizonDB server, without protocol or port (e.g. myserver.postgres.horizondb.azure.com).
sql *Requiredstring
SQL statements to execute
One or more SQL statements separated by semicolons, rendered with flow variables before execution and run in order over the same connection.
clientId string
Azure client id
Used with tenantId/clientSecret for service principal authentication when useEntraId is true. Ignored otherwise.
clientSecret string
Azure client secret
Used with tenantId/clientId for service principal authentication when useEntraId is true. Ignored otherwise.
fetchSize integerstring
10000JDBC fetch size
Number of rows fetched per database round trip; only used for STORE mode.
fetchType string
NONESTOREFETCHFETCH_ONENONEResult fetching mode
Applied uniformly to every statement in the sequence. FETCH returns all rows, FETCH_ONE returns the first row only, STORE streams rows to internal storage (ION), NONE returns no rows.
password string
Password
Required unless useEntraId is true.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
port integerstring
5432HorizonDB server port
Defaults to the standard PostgreSQL port.
ssl booleanstring
trueRequire TLS
When true (the default), the connection is rejected unless it is encrypted (sslmode=require). Set to false only for local development against a non-TLS instance.
tenantId string
Azure tenant id
Used with clientId/clientSecret for service principal authentication when useEntraId is true. Ignored otherwise.
useEntraId booleanstring
falseAuthenticate with Azure Entra ID
When true, authenticates using Azure Entra ID (via the Azure Identity Extensions JDBC plugin) instead of a static password. With no further properties set, this falls back to whatever DefaultAzureCredential resolves on the worker (managed identity, environment variables, Azure CLI login, etc.); set tenantId/clientId/clientSecret below to authenticate as a specific service principal instead.
username string
Username
Required unless useEntraId is true and the Entra ID token carries the identity.
Outputs
outputs array
Per-statement outputs
One entry per executed statement, in order.
io.kestra.plugin.azure.horizondb.Query-Output
First row of fetched data
Only populated when fetchType is FETCH_ONE.
All fetched rows
Only populated when fetchType is FETCH.
Number of rows fetched or stored
Populated when fetchType is FETCH, FETCH_ONE, or STORE.
Rows affected
Populated when the statement did not return a result set (e.g. INSERT, UPDATE, DELETE, DDL).
uriURI of stored results in internal storage
Only populated when fetchType is STORE; stored using ION format.
Metrics
fetch.size counter
rowsThe number of fetched or stored rows, emitted once per statement that returns a result set.