python odo sql AssertionError: datashape must be Record type, got 0 * {…}

前端 未结 3 2171
迷失自我
迷失自我 2021-01-03 04:19

I\'m trying to import a CSV into MySQL using odo but am getting a datashape error.

My understanding is that datashape takes the format:

var * {
    c         


        
3条回答
  •  粉色の甜心
    2021-01-03 05:03

    I had this error, needed to specify table

    # error
    odo('data.csv', 'postgresql://usr:pwd@ip/db')
    
    # works
    odo('data.csv', 'postgresql://usr:pwd@ip/db::table')
    

提交回复
热议问题