跳至内容

Unable to drop Athena View

0

Hi, we have stumbled on the situation when we are not able to recreate or delete the Athena view. We have tried to re-recrate view (CREATE OR REPLACE VIEW "my_view" AS SELECT...) with different underlying query however getting this error: Row type must have at least one parameter When we are trying to drop the view(DROP view "my_view"), the same error appears. When running select from the view the following error appears: View 'awsdatacatalog.my_view' is stale; it must be re-created We have a bunch of quicksight datasets relying on the view and would be great to be able to re-create it. The data source underneath is S3

已提问 3 年前501 查看次数
1 回答
1
已接受的回答

Hi , without seeing the full View DDL it is hard to understand if there is a specific issue with the view. A workaorund that was previously suggested by on stackoverflow by someone I trust is to try deleting the view object from the Glue Data Catalog directly, via console or using the following command in the CLI:

$ aws glue delete-table \
  --region THE_REGION \
  --database-name THE_DATABASE \
  --name THE_NAME_OF_THE_VIEW

hope this helps

AWS
专家
已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。