スキップしてコンテンツを表示

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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ