Databricks now allows sharing metric views via OpenSharing
Sharing metric views using OpenSharing is now generally available (GA). Add metric views to a share and query them using MEASURE(...).
O que mudou
Sharing metric views with OpenSharing is now generally available, enabling organizations to include metric views in Unity Catalog shares and query them externally.
Use cases
Imagine that you have defined centralized business metrics in a metric view and need to distribute them to external recipients or different business units. With this feature, you can:
- Add metric views to an OpenSharing share.
- Enable recipients to query business metrics using standardized definitions.
- Execute queries on shared metric views using serverless compute.
How to use
To add a metric view to a share, run the SQL command in a Databricks notebook or the Databricks SQL query editor:
ALTER SHARE my_share ADD TABLE my_catalog.my_schema.my_metric_view;
What happens in this code:
- The
ALTER SHAREcommand targets the specified sharing object. - The
ADD TABLEclause appends the metric view asset to the share collection. - The metric view becomes available to authorized recipients.
To query the shared metric view on the recipient side using serverless compute:
SELECT MEASURE(my_metric) FROM my_share.my_schema.my_metric_view;
What happens in this code:
- The query executes against the external share using serverless compute.
- The
MEASURE(...)function evaluates the aggregated metric defined in the shared view.
Limitations and requirements
- Maturity: Generally Available (GA).
- Querying shared metric views requires serverless compute.
- Requires appropriate Unity Catalog privileges, such as being the share owner and holding
USE CATALOG,USE SCHEMA, andSELECTpermissions on the source asset.
- unity catalog
- delta sharing
- opensharing
- serverless
- sql
Sharing metric views with OpenSharing is now generally available
Resumo e explicação gerados por IA a partir da release note oficial. Em caso de dúvida, a documentação oficial da plataforma prevalece.
Relacionadas
- DatabricksGA
Repositórios de pacotes em nível de workspace para Databricks Apps
Administradores de workspace podem configurar repositórios padrão de pacotes Python e npm para Databricks Apps.
databricks apps · workspace settings - DatabricksGA
Redimensione partições de stateful streaming sem perder o checkpoint no Databricks
Agora é possível alterar o número de partições de shuffle em queries Structured Streaming e pipelines Lakeflow sem descartar o estado do checkpoint.
structured streaming · lakeflow - DatabricksAtualização
Google Gemini 4 Argon disponível no Unity Gateway do Databricks
O modelo multimodal Google Gemini 4 Argon já pode ser acessado via Foundation Model APIs e Unity Gateway.
unity catalog · foundation model apis