Prerequisites
Before starting this task, ensure you have the following:- A published version of a rule. A newly published version can take about 30 seconds to appear in SQL.
- Access to Trino or Spark in NexusOne
decisions_enabledvariable set totrue, which is the default
Steps
Perform these steps to call a published rule from SQL:- Open a SQL editor that connects to Trino or Spark, such as SQL Lab in Superset. To open Superset, refer to Launch Superset.
-
Optional: To see which workspaces and rules you can call, run the following commands in Trino.
-
Call a rule as a function by running a query like the following:
Replace the placeholders with the following values:
<workspace-name>: The name of a workspace.<function-name>: The key of a rule, which you entered when you created it.<arguments>: The values that a rule needs, separated by commas.

