Reputation: 89
I want to copy some columns from csv file to cassandra table. There's 300 columns in csv file and I only need the first ten columns. There's no header in the csv file. I tried
copy table from 'file.csv' with header=false and skipcols=[range(11,300)]
but it didn't work.
Upvotes: 0
Views: 648
Reputation: 36
Can you specify column names after table name i.e.
COPY TABLE xx(c1,c2..C30) FROM ..
Upvotes: 1