Skip to main content

Query Data

Queries a data in TimescaleDB.

This node is also exposed as an AI Agent tool.

This node has 1 input port and 1 output port.

Common Properties​

Every node shares these.

  • Name — the node's display name on the canvas.
  • Color — the node's colour on the canvas.
  • Delay Before (sec) — wait this long before the node runs.
  • Delay After (sec) — wait this long after the node runs.
  • Continue On Error — carry on instead of failing the flow. Defaults to false.
info

When Continue On Error is true the error is not raised at all, so a Catch node will not see it either.

Inputs​

PropertyFieldDescription
Client IDinClientIDClient ID from Connect node
Select ColumnsinColumnsColumns to select (e.g. time,device_id,avg(temperature) as avg_temp)
Table NameinTableName of the hypertable to query
Time ColumninTimeColumnName of the time column (default: time)
Where ClauseinWhereOptional WHERE clause without the WHERE keyword (e.g. device_id

Outputs​

PropertyFieldDescription
Row CountoutRowCountNumber of rows returned
RowsoutRowsArray of result rows as JSON objects

Options​

PropertyFieldDescription
CredentialsoptCredentialsTimescaleDB credentials (optional if using Connect node)
LimitoptLimitMaximum number of rows to return
Order ByoptOrderByORDER BY clause (default: time column descending)
Time BucketoptBucketTime bucket interval for aggregation (e.g. 1 hour,5 minutes,1 day). Leave empty for no bucketing
Timeout (seconds)optTimeoutMaximum time in seconds to wait

Requirements​

  • A Client ID from this package's Connect node, unless you set credentials directly on this node.

Insert Data

Elsewhere in the package: Connect · Disconnect · Execute Query · Create Hypertable · Drop Chunks · Enable Compression · Create Continuous Aggregate · Refresh Continuous Aggregate · Toolkit

See also​