Open ebirukov opened 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')
alter table t1 add if not exists partition(date='2021-11-11')
This is fixed in version 1.3.1-SNAPSHOT.
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')