Aws Athena - Create external table skipping first row

前端 未结 5 919
无人共我
无人共我 2020-12-10 01:37

I\'m trying to create an external table on csv files with Aws Athena with the code below but the line TBLPROPERTIES (\"skip.header.line.count\"=\"1\") doesn\'t

5条回答
  •  粉色の甜心
    2020-12-10 02:02

    This is a feature that has not yet been implemented. See Abhishek@AWS' response here:

    "We are working on it and will report back as soon as we have an outcome. Sorry for this again. This ended up taking longer than what we anticipated."

    My workaround has been to preprocess the data before creating the table:

    1. download the csv file from S3
    2. strip the header using bash sed -e 1d -e 's/\"//g' file.csv > file-2.csv
    3. upload the results to its own folder on S3
    4. create the table

提交回复
热议问题