Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon Athena ALTER TABLE ADD PARTITION query giving missing column error

ALTER TABLE "herdsysa"."temperature" ADD IF NOT EXISTS PARTITION (dt='2020-02-03')

I am trying to run this query on athena workbench but it says missing column at if (service: amazonathena; status code: 400; error code: invalidrequestexception; request id: 935dfae3-a4af-4438-be16-10d7884c9292)

anybody know how to make this work?

like image 971
kamal11 Avatar asked Mar 15 '26 14:03

kamal11


1 Answers

Try removing Double quotes and execute.

 ALTER TABLE herdsysa.temperature ADD IF NOT EXISTS PARTITION (dt='2020-02-03')
like image 143
Arun Palanisamy Avatar answered Mar 18 '26 04:03

Arun Palanisamy