awslabs / aws-glue-catalog-sync-agent-for-hive

Enables synchronizing metadata changes (Create/Drop table/partition) from Hive Metastore to AWS Glue Data Catalog
Apache License 2.0
33 stars 13 forks source link

Handle HiveMetaStore AlterTableEvent changes #21

Closed frankgrimes97 closed 1 year ago

frankgrimes97 commented 1 year ago

Implement MetaStoreEventListener.onAlterTable.

The logic for propagating the changes to Athena is as follows:

If only new columns are added:

If columns are removed/renamed or if any data types change:

Also address a bug where an infinite retry loop can happen when either dropTableIfExists or createMissingDB are enabled.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.