Skip to main content

test Python Version from PEP 621 TOML

Unity Catalog Migrate

Disclaimer: This project is unofficial and not affiliated with or endorsed by the official Unity Catalog team.

Migrate catalogs, schemas, and tables from Databricks to Unity Catalog.

Requirements

Installation

To install the Unity Catalog Migrator, you can use the following commands:

pip install unitycatalog-migrate

Usage

Migrate Catalogs

ucm migrate-catalog NAMES... --profile <databricks-profile> 

Migrate Schemas

ucm migrate-schema FULL_NAMES... --profile <databricks-profile> 

where FULL_NAMES are in the format catalog.schema

Migrate Tables

ucm migrate-table FULL_NAMES..  --profile <databricks-profile>  

where FULL_NAMES are in the format catalog.schema.table

Configuration

The Unity Catalog Migrator uses the following environment variables:

  • UC_HOST_URL: The URL of the Unity Catalog server. Default is http://localhost:8080/api/2.1/unity-catalog.
  • UC_TOKEN: The token to authenticate with the Unity Catalog server. Default is None. You can also pass the token as an argument to the command.

Example

# Use Databricks CLI to get tables 
table_names=$(databricks tables list catalog1 schema1 --profile DATABRICKS_TEST | awk 'NR>1 {print $1}' | paste -sd ' ' -)

# Migrate the tables to Unity Catalog using ucm
echo $table_names | xargs ucm migrate-table --profile DATABRICKS_TEST 

Remarks

  • Catalog and Schema need to exist in Unity Catalog before migrating tables

Not supported:

  • system tables
  • Variant datatype

Contributing

  • Contributions are welcome. Please fork and make a PR and I'll take a look asap.
  • Star the repo if you like it.

Metadata

Release files for unitycatalog-migrate 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unitycatalog-migrate 0.1.1
File Size Uploaded
unitycatalog_migrate-0.1.1.tar.gz 84.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for unitycatalog-migrate 0.1.1
File Interpreter ABI Platform
unitycatalog_migrate-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 91.5 kB

Release files / unitycatalog_migrate-0.1.1.tar.gz

Download URL unitycatalog_migrate-0.1.1.tar.gz
Size 84.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e2a5e81fec8692c5008271b90f5c893b7a7e6bd6f2fd3f999125ec73558b3a12
BLAKE2b-256 checksum
How to use checksums
a2c3acf1e87417c73715b0ba03c58f8314b41f8d8d981eeec1f9f2f1df3e5f3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 27, 2025.

Transparency log

Release files / unitycatalog_migrate-0.1.1-py3-none-any.whl

Download URL unitycatalog_migrate-0.1.1-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
329a5a99f704df18aa4b5e4ae9493116326c0f444b9a1fb128b0c782b25ffe12
BLAKE2b-256 checksum
How to use checksums
7fe1ed8492115c31f2b896be02dc9dfc99ea01f08e083e64741599f5d929b793
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 27, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page