ALTER PROVIDER (Databricks SQL)

Renames a provider. Transfers the ownership of a provider to a new principal.

Syntax

ALTER PROVIDER provider_name
  { RENAME TO to_provider_name |
    [ SET ] OWNER TO principal }

Parameters

  • provider_name

    The name of the provider to be altered.

  • RENAME TO to_provider_name

    Renames the provider. The name must be unique among all providers in the metastore. To run this statement, you must be the owner of the provider and have CREATE PROVIDER privilege on the metastore.

  • [ SET ] OWNER TO principal

    Transfers ownership of the provider to principal. To run this statement, you must be the owner of the provider.

    SET is allowed as an optional keyword. Requires: SQL warehouse version 2022.35 or higher. This version is available in the Preview channel.

Examples

-- Rename a provider
> ALTER PROVIDER `Center for Disease Control` RENAME TO cdc;

-- Change ownership of the provider
> ALTER PROVIDER cdc OWNER TO `alf@melmak.et`