Save / backup Athena view

0

From AWS documentation, i can see that one of the main differences between Athena views vs Athena CTAS tables is that views don't actually contain or write any data. If a customer wants to persist / back up a view, is the best practice to have them create a CTAS so the data is persisted in S3? Or something else? Thanks!

AWS
質問済み 4年前706ビュー
1回答
0
承認された回答

Hi ,

A View in SQL is a logical object and by design is ephemeral.

If the customer requirements is to have a persistent copy of the view they should use a CTAS.

If their goal is actually to save the query result (running on that view or even on a table) they can follow the instructions in this documents (to backup the full view they could run a Select * from View):

https://aws.amazon.com/premiumsupport/knowledge-center/access-download-athena-query-results/

https://docs.aws.amazon.com/athena/latest/ug/querying.html#query-results-specify-location

hope this helps

AWS
エキスパート
回答済み 4年前

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

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

質問に答えるためのガイドライン

関連するコンテンツ