AWS Glue: How to handle nested JSON with varying schemas

后端 未结 5 1734
独厮守ぢ
独厮守ぢ 2021-01-31 11:29

Objective: We\'re hoping to use the AWS Glue Data Catalog to create a single table for JSON data residing in an S3 bucket, which we would then query and parse v

5条回答
  •  悲&欢浪女
    2021-01-31 11:40

    you should add a glue classifier preferably $[*]

    When you crawl the json file in s3, it will read the first line of the file.

    You can create a glue job in order to load the data catalog table of this json file into the redshift.

    My only problem with here is that Redshift Spectrum has problems reading json tables in the data catalog..

    let me know if you have found a solution

提交回复
热议问题