ALTER PROVIDER

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

Since: Databricks Runtime 11.1

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.

    Since: Databricks Runtime 11.2 SET is allowed as an optional keyword.

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`