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
已提問 3 個月前檢視次數 161 次
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
專家
已回答 3 個月前
  • 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.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南