1

I am pipelining csv's from an S3 bucket to AWS's Athena using Glue and the titles of the columns are just the default 'col0', 'col1' etc, while the true titles of the columns are found in the first row entry. Is there a way, either in the pipeline process or in an early postgreSQL query, to make the first row entry the column names? Ideally avoiding directly hardcoding in the column names in the Glue crawler.

Capeboom
  • 425
  • 1
  • 5
  • 13

1 Answers1

0

https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-format.html

Use withHeader=True while reading data using Glue Api

Sandeep Fatangare
  • 2,054
  • 9
  • 14