cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Governance
Join discussions on data governance practices, compliance, and security within the Databricks Community. Exchange strategies and insights to ensure data integrity and regulatory compliance.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

using the SYNC TABLE command with AWS Glue tables

JameDavi_51481
New Contributor III

According to the docs, we should be able to use SYNC TABLE to 'upgrade' a table from a Hive metastore to Unity Catalog. We are using AWS Glue as our Hive Metastore, but tables created in Glue do not seem to be set up in a format that Databricks likes. When we try to run `SYNC TABLE` on a Glue table, DBSQL returns the error message `[UPGRADE_NOT_SUPPORTED.HIVE_SERDE] Table is not eligible for upgrade from Hive Metastore to Unity Catalog. Reason: Hive SerDe table.`

Has anyone successfully gotten SYNC TABLE or SYNC SCHEMA working where a Glue table is the source?

1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @JameDavi_51481, Unity Catalog does not support tables created in AWS Glue using Hive SerDe and cannot be upgraded using the SYNC command. The recommended solution is to change the tables into Delta format and then issue the SYNC command to upgrade. Alternatively, you can create a new table in Unity Catalog using the CREATE TABLE command and then copy the data from the Glue table using INSERT INTO base. However, this may not preserve all the metadata and settings of the original table.

Sources:
https://docs.databricks.com/data-governance/unity-catalog/migrate.html#upgrading-tables-from-hive-me...
https://docs.databricks.com/data/data-sources/aws/amazon-glue-metastore.html#limitations

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group