Glue Crawler - skip adding partitions

0

Partitioned data in S3 as below -

some-dataset/2019-12-28/

some-dataset/2019-12-29/

some-dataset/2019-12-30/

some-dataset/2019-12-31/

some-dataset/2020-01-01/

some-dataset/2020-01-02/

some-dataset/2020-01-03/

When running a Glue crawler against the above dataset to create the schema in the catalog, how can we configure the crawler to avoid adding partitions for year 2019 into the table?

If that is not possible, is there a way to totally avoid registering ANY partitions and only create the table schema?

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

You can add excludes to the crawler, e.g. for anything 2019 "**/2019-**" The second question doesn't make any sense to me, if you have a partitioned table you need at least one partition. You can disable the crawler once the table is created with at least one.

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

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

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

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