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

WAREHOUSE_SCHEDULES

Sundeck CATALOG.WAREHOUSE_SCHEDULES view stores information about warehouse schedule periods.

Column NameData TypeDescription
NAMETEXTWarehouse name
START_ATTIMETime when schedule starts
FINISH_ATTIMETime when schedule ends
SIZETEXTSnowflake defined warehouse sizes
SUSPEND_MINUTESNUMBERAfter how many minutes of inactivity warehouse will be suspended.
RESUMEBOOLEANSpecifies if warehouse automatically resumed if query submitted to it
SCALE_MINNUMBERSpecifies the minimum number of clusters for a multi-cluster warehouse
SCALE_MAXNUMBERSpecifies the maximum number of clusters for a multi-cluster warehouse
WAREHOUSE_MODETEXTType of the warehouse Standard or Economy
COMMENTTEXTComments text
WEEKDAYBOOLEANIf True, this warehouse schedule period belongs to the week day (Monday through Friday)
ENABLEDBOOLEANIf True, schedule is enabled
LAST_MODIFIEDTIMESTAMP_LTZTime when warehouse schedule period was last modified

Example:

vicky#COMPUTE_WH@OPSCENTER.ADMIN>select
                                  name,
                                  start_at,
                                  finish_at,
                                  size,
                                  resume,
                                  weekday,
                                  enabled
                                from
                                  catalog.warehouse_schedules
                                where
                                  name = 'BATCH';
+-------+----------+-----------+---------+--------+---------+---------+
| NAME  | START_AT | FINISH_AT | SIZE    | RESUME | WEEKDAY | ENABLED |
|-------+----------+-----------+---------+--------+---------+---------|
| BATCH | 00:00:00 | 15:00:00  | X-Small | True   | True    | False   |
| BATCH | 00:00:00 | 23:59:00  | X-Small | True   | False   | False   |
| BATCH | 15:00:00 | 23:59:00  | Small   | True   | True    | False   |
+-------+----------+-----------+---------+--------+---------+---------+
3 Row(s) produced.