SYSTEM$SET_DEFAULT_COLUMNS_OVERRIDE_FOR_SHOW_COMMAND

functionsupportedAccounts, users, sessions, warehouses

docs.snowflake.com ↗

System functions

Controls the columns that should be returned when the specified SHOW <objects> command is executed. You can call this function if the introduction of new columns in a SHOW COMMAND introduces a problem with a script or code that depends on a fixed number or order of columns in the results. See Handling new columns in SHOW command output, Snowflake views, and table functions.

Syntax

SYSTEM$SET_DEFAULT_COLUMNS_OVERRIDE_FOR_SHOW_COMMAND(
  '<object_type>',
  '<list_of_columns>'
)

Parameters

NameRequiredDescription
'object_type'requiredType of object for the SHOW command. For example, for the SHOW TABLES command, specify 'TABLES'. For the SHOW NOTIFICATION INTEGRATIONS command, specify 'NOTIFICATION INTEGRATIONS'.
list_of_columnsrequiredComma-separated list of columns that should be returned in the output of the SHOW command. You can specify the column names in uppercase, lowercase, or mixed case. To return all columns, specify an empty string or call SYSTEM$UNSET_DEFAULT_COLUMNS_OVERRIDE_FOR_SHOW_COMMAND.

Returns

Returns TRUE if the operation was successful.

Access control requirements

Only account administrators (users who have been granted the ACCOUNTADMIN role) can call this function.

See also

Referenced by