I have data structured as so that I want crawled and added to Athena:
key_1: {id: key_1, name: name_1, other_data: data_1}
key_2: {id: key_2, name: name_2, other_data: data_2}
key_3: {id: key_3, name: name_3, other_data: data_3}
Ideally, I'd like the Glue table schema to look as so:
id:string
name:string
other_data:string
But Glue is instead creating a schema that is:
key_1:
id:string
name:string
other_data:string
key_2:
id:string
name:string
other_data:string
key_3:
id:string
name:string
other_data:string
Is there any way to get Glue to ignore the outer keys and instead develop a schema only over the body content without having to change the underlying S3 file itself?
Glue Configuration:
- Schema updates in the data store Update the table definition in the data catalog.
- Inherit schema from table Update all new and existing partitions with metadata from the table.
- Object deletion in the data store Mark the table as deprecated in the data catalog.