Skip to main content

Create Continuous Aggregate

Creates a continuous aggregate 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
Aggregate QueryinQuerySELECT query with time_bucket for the aggregate. Must include time_bucket() and GROUP BY bucket
Client IDinClientIDClient ID from Connect node
View NameinViewNameName for the continuous aggregate view

Outputs

PropertyFieldDescription
SuccessoutSuccessWhether the continuous aggregate was created successfully

Options

PropertyFieldDescription
CredentialsoptCredentialsTimescaleDB credentials (optional if using Connect node)
End OffsetoptEndOffsetEnd of refresh window relative to now (e.g. 1 hour). Required if Refresh Interval is set
If Not ExistsoptIfNotExistsDo not error if view already exists
Refresh IntervaloptRefreshIntervalHow often to refresh the aggregate (e.g. 1 hour,30 minutes). Leave empty for no automatic refresh policy
Start OffsetoptStartOffsetStart of refresh window relative to now (e.g. 3 days). Required if Refresh Interval is set
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.

Refresh Continuous Aggregate

Elsewhere in the package: Connect · Disconnect · Execute Query · Insert Data · Query Data · Create Hypertable · Drop Chunks · Enable Compression · Toolkit

See also