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

Denys
asked a year ago277 views
1 Answer
1
Accepted Answer

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
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions