Aws Athena - Create external table skipping first row

前端 未结 5 916
无人共我
无人共我 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 01:54

    I recently tried:

    TBLPROPERTIES ('skip.header.line.count'='1')
    

    And it works fine now. This issue arose when I had the column header as a string (timestamp) and the records where actual timestamps. My queries would bomb as it would scan the table and find a string instead of timestamp.

    Something like this:

    ts
    2015-06-14 14:45:19.537
    2015-06-14 14:50:20.546

提交回复
热议问题