Trigger
Wait for query on BigQuery.
type: "io.kestra.plugin.gcp.bigquery.Trigger"
Wait for a sql query to return results and iterate through rows.
id: bigquery_listen
namespace: company.team
tasks:
- id: each
type: io.kestra.plugin.core.flow.ForEach
values: "{{ trigger.rows }}"
tasks:
- id: return
type: io.kestra.plugin.core.debug.Return
format: "{{ taskrun.value }}"
triggers:
- id: watch
type: io.kestra.plugin.gcp.bigquery.Trigger
interval: "PT5M"
sql: "SELECT * FROM `myproject.mydataset.mytable`"
fetch: true
NO
false
Whether to Fetch the data from the query result to the task output. This is deprecated, use fetchType: FETCH instead
NO
false
Whether to Fetch only one data row from the query result to the task output. This is deprecated, use fetchType: FETCH_ONE instead
YES
NONE
STORE
FETCH
FETCH_ONE
NONE
Fetch type
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
NO
60
duration
Interval between polling.
The interval between 2 different polls of schedule, this can avoid to overload the remote system with too many calls. For most of the triggers that depend on external systems, a minimal interval must be at least PT30S. See ISO_8601 Durations for more information of available interval values.
YES
false
YES
YES
["https://www.googleapis.com/auth/cloud-platform"]
YES
YES
The sql query to run
NO
CREATED
RUNNING
PAUSED
RESTARTED
KILLING
SUCCESS
WARNING
FAILED
KILLED
CANCELLED
QUEUED
RETRYING
RETRIED
SKIPPED
List of execution states after which a trigger should be stopped (a.k.a. disabled).
NO
false
Whether to store the data from the query result into an ion serialized data file. This is deprecated, use fetchType: STORE instead
The destination table (if one) or the temporary table created automatically
The job id
Map containing the first row of fetched data
Only populated if 'fetchOne' parameter is set to true.
List containing the fetched data
Only populated if 'fetch' parameter is set to true.
The size of the rows fetch
uri
The uri of store result
Only populated if 'store' is set to true.
NO
The dataset of the table
NO
The project of the table
NO
The table name