SHOW SHARES IN PROVIDER

Applies to: check marked yes Databricks SQL check marked yes Databricks Runtime 11.3 LTS and above check marked yes Unity Catalog only

Lists the shares a Delta Sharing provider made available to you that match an optionally supplied regular expression pattern. If no pattern is supplied, then the command lists all the provider's shares. You must own the provider or be metastore administrator to run this command.

Syntax

SHOW SHARES IN PROVIDER provider_name [ [ LIKE ] regex_pattern ]

Parameters

  • provider_name

    The name of the provider that shows shares.

  • regex_pattern

    A regular expression pattern that is used to filter the results of the statement.

    • Except for * and | character, the pattern works like a regular expression.
    • * alone matches 0 or more characters and | is used to separate multiple different regular expressions, any of which can match.
    • The leading and trailing blanks are trimmed in the input pattern before processing. The pattern match is case-insensitive.

Examples

> SHOW SHARES IN PROVIDER some_provider;
  name
  ---------
  vaccine