dropStreamGraph

Syntax

dropStreamGraph(name)

Arguments

name is a string representing the name of the stream graph. You can provide either the fully qualified name (FQN), such as "trading.orca_graph.factors", or just the graph name, like "factors". If only the name is given, the system will automatically complete it using the current catalog.

Details

Destroys the specified stream graph. After successful execution, the stream graph’s status is set to "destroyed", but the metadata record is not deleted.

In a cluster deployment, this function can only be executed by an administrator or a user who has the COMPUTE_GROUP_EXEC permission for the compute group that was used to create the stream graph. In a single-node deployment, permission checks are not required.

Examples

dropStreamGraph("demo.orca_graph.indicators")

getStreamGraphMeta("demo.orca_graph.indicators")["status"]
// Output: ["destroyed"]