Documentation
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Reject

The REJECT Pre-hook can be executed when a query should not be executed in Snowflake. In those cases, the hook can provide additional context to the user about why the query was rejected.

Configuration Syntax


{'message': <message>}

Arguments

<message>
A string that is returned to the user when the query is rejected.

Examples

CREATE SUNDECK FLOW REJECT_EVERYTHING
      PRE HOOK CONVERT
      ALWAYS
      REJECT {'rejectMessage': $$This flow doesn't allow queries to be submitted.$$}
;