How to filter by file type in a Glue table?

0

I have an S3 bucket with mixed files (CSV and JSON), written there by an external process that is outside of my control.

I need to create two Glue tables:

  1. Contains all of the data from CSVs
  2. Contains all of the data from JSONs

Is this possible?

profile picture
m0ltar
質問済み 2ヶ月前132ビュー
1回答
0

The only standard way I know to do that is creating a symlink table (it has a manifest that points to the specific files, which you would need to update). But normally you would want to convert to columnar formats, standardize, transform, partitions or do other things before you create the table, take that chance to separate the files and generate good tables. I would save my users the pain of using CSV/JSON tables.

profile pictureAWS
エキスパート
回答済み 2ヶ月前
  • The only standard way I know to do that is creating a symlink table (it has a manifest that points to the specific files, which you would need to update).

    Could you please elaborate on this. I am not too familiar with the concept of a "symlink table".

    But normally you would want to convert to columnar formats, standardize, transform, partitions or do other things before you create the table

    And to do that, we want to use Athena, potentially via dbt. The idea was to define base raw tables, with partitions, then compact the data using Athena.

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

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

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

関連するコンテンツ