Files
greptimedb/src/flow
discord9 32885b74e3 feat(flow): carry a per-flow max_memory budget with every flow query
CREATE FLOW ... WITH (max_memory = '512MB') is validated (ReadableSize,
positive, batching flows only), persisted with the flow options and
resolved on the flownode into the task config.

Every flow-owned query that executes on a frontend now carries
flow.max_memory_bytes together with flow.flow_id, including recovery
window capture and flow-owned SQL statements, so no flow query path
escapes the budget. Without the option no new extension is emitted.

Signed-off-by: discord9 <discord9@163.com>
2026-11-05 17:42:31 +08:00
..