How to create AWS Glue table where partitions have different columns? ('HIVE_PARTITION_SCHEMA_MISMATCH')

后端 未结 4 1349
隐瞒了意图╮
隐瞒了意图╮ 2020-12-24 01:50

As per this AWS Forum Thread, does anyone know how to use AWS Glue to create an AWS Athena table whose partitions contain different schemas (in this case different subsets o

4条回答
  •  一向
    一向 (楼主)
    2020-12-24 02:12

    Despite selecting Update all new and existing partitions with metadata from the table. in the crawler's configuration, it still occasionally failed to set the expected parameters for all partitions (specifically jsonPath wasn't inherited from the table's properties in my case).

    As suggested in https://docs.aws.amazon.com/athena/latest/ug/updates-and-partitions.html, "to drop the partition that is causing the error and recreate it" helped

    After dropping the problematic partitions, glue crawler re-created them correctly on the following run

提交回复
热议问题