0

I have a delta table in s3 and for the same table, I have defined an external table in Athena. After creating the Athena table and generating manifests, I am loading the partitions using MSCK REPAIR TABLE. All the partition columns are in snake_case. But still, I am getting

Partitions not in metastore.

Any idea what am I missing here?

AswinRajaram
  • 1,519
  • 7
  • 18
Ankit Anand
  • 321
  • 3
  • 7

2 Answers2

1

The IAM user or role doesn't have a policy that allows the glue:BatchCreatePartition action. You have to allow glue:BatchCreatePartition in the IAM policy and it should work.

AswinRajaram
  • 1,519
  • 7
  • 18
0

Resolved the issue. I was putting partition columns in wrong order while creating the table.

Ankit Anand
  • 321
  • 3
  • 7