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년 전1158회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인