Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't handle CSVs with uneven number of columns correctly #119

Open
masukomi opened this issue Dec 15, 2017 · 1 comment
Open

doesn't handle CSVs with uneven number of columns correctly #119

masukomi opened this issue Dec 15, 2017 · 1 comment

Comments

@masukomi
Copy link

masukomi commented Dec 15, 2017

I have a csv with >=4 columns per row. Columns 5+ are all strings in the csv
the 1st 4 columns are handled as expected. the 5th column is titled "Rec", is an int, and contains 1 on all rows.

Neither "Rec" nor the "1" are from the CSV.

if i had to guess Tad is assuming that the number of columns in the first row is going to be the same in all the other rows and then getting confused when it hits more and adding that Rec column... whatever that is.

@masukomi masukomi changed the title doesn't handle csvs with uneven number of columns correctly doesn't handle CSVs with uneven number of columns correctly Dec 15, 2017
@ghost
Copy link

ghost commented Jan 11, 2019

Rec is the number of records. When you use the Pivot function etc. it is very helpful. That has nothing to do with your columns problem.

I think your problem is just that the first column is interpreted as the header and now you have rows with more columns than the header has. When I open such an example, Tad chrashes with an SQLite error

SQLITE_ERROR: duplicate column name: undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant