Unity Catalog Tech Pitch
- Unity Catalog
- Unified governance for data and Al
- "Organizations are finally realizing the value of data as an asset that needs to be protected, managed and maintained to increase asset value” IDC
- "Organizations seeing the highest returns from Al have a framework for Al governance to cover every step of the model development process" The State of Al in 2022, McKinsey & Co
- “Al is now an enterprise essential, and as such, Al governance will join cybersecurity and compliance as a board-level topic" Forrester, 2023 Al Predictions report
Data Estate Challenges
- Fragmented view of the data and Al estate
- Disjoint tools for access management
- Incomplete monitoring and observability
- Lack of cross-platform data sharing
- Reduced pace of innovation
- Increased data breach risk, operational expenses
- Non-compliance risk, reputational harm
- Costly data sharing, untapped monetization
Roles and Governance Questions
- Data Consumers: Data analyst, Data engineer, ML engineer, Applications
- "Where to discover the datasets, models, notebooks, dashboards?"
- "Can I trust the data and ML models?"
- Data Governance Team: "How to secure these assets?", "Who is accessing these assets and how?", "Are we meeting the regulatory compliance?"
- Data lake: Permissions on files
- Data warehouse: Permissions on tables, rows and columns
- ML Models: Permissions on ML models, features
- BI dashboards: Permissions on reports, dashboards
Architecture and Integration
- BI & Data Warehousing, Data Engineering, Data Streaming, Data Science & ML
- External Compute Platforms: amazon ATHENA, presto, amazon EMR, trino, APACHE Spark
- Open Interfaces
- Unity Catalog: One governance model for structured and unstructured data + Al
- Cloud Data Lake: All structured, semi-structured, and unstructured data (Azure Data Lake Storage, amazon S3, Google Cloud Storage)
- External Catalogs: HIVE, AWS Glue
- External Data Sources: amazon REDSHIFT, snowflake, Google Big Query, MySQL, Azure Synapse Analytics, PostgreSQL, Microsoft SQL Azure
Core Capabilities and Assets
- Unified visibility into data and Al
- Single permission model for data and Al
- Al-powered monitoring and observability
- Open data sharing
- Features: Discovery, Access Controls, Lineage, Monitoring, Auditing, Data Sharing
- Assets governed: Tables, Files, Models, Notebooks, Dashboards
- Centralized metadata and user management
- Centralized access controls
- Data lineage
- Data access auditing
- Data search and discovery
- Secure data sharing with Delta Sharing
Metadata, Namespaces, and Storage
- Workspace models versus Unity Catalog central model
- Workspace manages: Clusters, SQL Warehouses
- Unity Catalog manages: User Management, Metastore, Foreign Databases, Access Controls
- Working with file based data sources:
- Credentials: Cloud provider credential to connect to storage
- External Locations: Storage location used for external tables or arbitrary files
- Managed Data Sources: External Location that is used exclusively for tabular data
- Volumes: Arbitrary file container inside an external location
- Working with databases:
- Connections: Credential and connection information to connect to an external database
- Foreign Catalogs: A catalog that represents an external database and can be queried alongside managed data sources and file sources
- Legacy and Foreign Entities: hive_metastore (legacy) -> default (database) -> customers (table)
- Foreign Catalog -> Foreign Schema -> Foreign Table
- Unity Catalog Hierarchy: Catalog -> Schema -> Volumes, Models/Functions, Views, Managed / Ext Tables
- Example Hierarchy: Catalogs, retail_prod, churn, user_features
- Columns: user_id (string), email (string), creation_date (timestamp), last_activity_date (timestamp), firstname (string), lastname (string)
- SQL Query Examples: SELECT * FROM main.paul.red_wine; SELECT * FROM hive_metastore.default.customers; SELECT * FROM snowflake_warehouse.some_schema.some_table;
Access Control and Security
- SQL Commands: GRANT ON TO, REVOKE ON FROM
- Centrally grant and manage access permissions across workloads
- Using ANSI SQL DCL: GRANT ON TO
<principal> - Example: GRANT SELECT ON iot.events TO engineers
- Using UI: Data Explorer, Grant on main.default.department
- Users also require USE CATALOG and USE SCHEMA on the parent catalog and schema to perform actions in this table.
- Sync groups from your identity provider
- Privileges: SELECT gives read access to an object, MODIFY gives ability to add, delete, and modify data to or from an object, ALL PRIVILEGES gives all privileges
- Row Level Security and Column Level Masking (In Preview)
- Provide differential fine grained access to datasets
- Only show specific rows: CREATE FUNCTION us_filter(region STRING) RETURN IF(IS_MEMBER('admin'), true, region="US"); ALTER TABLE sales SET ROW FILTER us_filter ON region;
- Mask or redact sensitive columns: CREATE FUNCTION ssn_mask(ssn STRING) RETURN IF (IS_MEMBER('admin'), ssn, "****"); ALTER TABLE users ALTER COLUMN table_ssn SET MASK ssn_mask;
- Use data-sec-ops, policies as code patterns to scale your efforts
- Privileges for objects can be managed programmatically using Terraform provider
- Automate Unity Catalog setup using Terraform
Data Storage and Isolation
- Simplify data access management across clouds
- Cloud Storage (S3, ADLS, GCS)
- Use managed data sources for data isolation or cost allocation
- Default access to storage by catalog or schema
- Metastore -> Catalog -> Schema level storage containers/buckets
- Govern external tables and filesystem access separately
- SELECT ONLY access vs WRITE OPERATION access
- Restrict data access by environment or purpose
- Environments: dev, staging, prod workspaces isolated by catalog and groups
- Access to data and availability of data can be isolated across workspaces and groups
Query Execution Flows
- Querying file based data sources:
- Admin: Creates IAM role / Managed Identity / Service Account, creates storage credentials / external locations, defines access policies
- User: Send query (SQL Python, R, Scala)
- System: Check namespace, metadata and grants, enforce policies, return list of paths and temporary tokens, ingest data, log audit events
- Querying database sources (In Preview):
- Admin: Defines Connection object with JDBC connection information to database, registers foreign catalog, defines access policies
- User: Send query (SQL Python, R, Scala)
- System: Check namespace/grants, return encrypted credentials, direct connection to database with predicate pushdown, return data, push metadata changes to control plane
Volumes
- In Preview
- Access, store, organize and process files with governance
- Volumes can be accessed by POSIX commands: ls /Volumes/volume123
- Volumes are created under Managed or External Locations and show up in Lineage
- Volumes add governance over non-tabular data sets
- Unstructured data (image, audio, video, PDF files) used for ML
- Semi-structured training, validation, test data sets
- Raw data files used for ad-hoc or early stage data exploration
- Library or config files used across workspaces
- Operational data, e.g., logging or checkpointing output files
- Tables are registered in Managed / External Locations, not in Volumes
Data Lineage
- End-to-end visibility into how data flows and consumed in your organization
- Auto-capture runtime data lineage on a cluster or SQL warehouse
- Track lineage down to the table and column level
- Leverage common permission model
- Lineage across tables, dashboards, workflows, notebooks, feature tables, files, and DLT
- Upstream and downstreams connections
- Code (any language) is submitted to a cluster or SQL warehouse or DLT executes data flow
- Lineage service analyzes logs emitted from the cluster, and pulls metadata
- Assembles column and table level lineage
- Presented to the end user graphically in the UI
- Lineage can be exported via API and imported into other tools (External Catalogs like Alation, Microsoft Purview, Collibra)
Search, Discovery, and Tags
- Accelerate time to value with low latency data discovery
- UI to search for data assets stored in Unity Catalog
- Unified UI across data science, machine learning, and SQL workloads
- Apply semantic tags to data and search across tags
- Search filters: All, Tables, Queries, Dashboards, Alerts, More, Catalog, Schema
- Semantic layer for your lakehouse
- Problem: Searching for data assets in business terms or generally agreed upon taxonomies usually requires additional catalog tools.
- Solution: Discovery Tags allow you to tag Column, Table, Schema, Catalog objects
- Integrated search mechanism allows you to search for objects by tag
- Tags examples: PII_DATA, SENSITIVE (In Preview)
Delta Sharing Protocol
- DATA PROVIDER to DATA CONSUMER via Activation link
- Request table, Pre-signed short-lived URLs
- Temporary direct access to files (Delta format) in the object store - AWS S3, GCP, ADLS
- Delta Sharing Connectors: Power BI, node, Spark, elixir, pandas, Java, tableau, R
- Under the hood:
- Client authenticates to Sharing Server
- Client requests a table (including filters)
- Server checks access permissions
- Server generates and returns pre-signed short-lived URLs
- Client uses URLs to directly read files from object storage
- Sharing happens on part files, supporting full tables, partitions, delta versions
- Client is system independent, just needs to be able to read parquet files
- Sharing Server and ACL checks are fully integrated
Top comments (0)