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

AthenaJDBC Error when adding a partition with the date type #12

Open ebirukov opened 2 years ago

ebirukov commented 2 years ago

Only the string type of partition is wrapped in quotes, The "date" type in the partition is not quoted https://github.com/awslabs/aws-glue-catalog-sync-agent-for-hive/blob/6dd72172d3a5969a0b559bad2503c76155e1771a/src/main/java/com/amazonaws/services/glue/catalog/HiveGlueCatalogSyncAgent.java#L271-L276

It cause AthenaJDBC Error for hive statement like alter table t1 add if not exists partition(date='2021-11-11')

IanMeyers commented 2 years ago

This is fixed in version 1.3.1-SNAPSHOT.