GRANT OWNERSHIP

Syntax

GRANT OWNERSHIP ON 
      ( COMPUTE_POOL compute_pool_name
      | DATABASE database_name
      | SCHEMA [database_name.]schema_name
      | RELATION [[database_name.]schema_name.]relation_name
      | STORE store_name
      | SCHEMA_REGISTRY schema_registry_name
      | QUERY query_id
      | DESCRIPTOR_SOURCE descriptor_source_name
      | FUNCTION_SOURCE function_source_name
      | FUNCTION function_identifier
      | ROLE role_name
      )
TO roleName

Description

Transfer ownership or an object to a new Role.

You can transfer ownership only if the current role is the owner of the object and has been granted the destination role.

Examples

Last updated