Change Intelligence is coming.

  • Reference
  • Version · 5.2.2
  • Reference guide

alterStageDirectoryTable

Last updated: August 12, 2026

Enables, disables, or refreshes the directory table for an existing stage in Snowflake. Directory tables track metadata for files in stages.

Note: This change type does not support automatic rollback.

Available attributes

Attribute

Type

Description

Required

catalogName

String

Name of the catalog (database) containing the stage

No

schemaName

String

Name of the schema containing the stage

No

stageName

String

Name of the stage to alter

Yes

ifExists

Boolean

Don't error if the stage doesn't exist

No

enable

Boolean

Enable (true) or disable (false) the directory table*

No

refresh

Boolean

Refresh the directory table metadata*

No

subPath

String

Subdirectory path to refresh (only with refresh=true)

No

* Exactly one of enable or refresh must be specified (mutually exclusive).

loading

loading

loading

loading