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

inserting with --nl errors with: sqlite3.OperationalError: table <table> has no column named <column> #256

Closed
rathboma opened this issue Apr 19, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@rathboma
Copy link

I have a jsonl file, it is 10,000 lines long.

Inserting from the cli with sqlite-utils insert db table file --nl --batch-size 10000 fails with this missing column error, even though I'm telling it to use the whole file in the first batch.

This seems similar to #18 and #139, but maybe it's unique to --nl?

@rathboma rathboma changed the title inserting with --nl errors with: sqlite3.OperationalError: table instancedata has no column named x inserting with --nl errors with: sqlite3.OperationalError: table <table> has no column named <column> Apr 19, 2021
@simonw simonw added the bug Something isn't working label May 19, 2021
@simonw
Copy link
Owner

simonw commented May 19, 2021

Did you try running this with the --alter command-line option? That seems to work when I try it on a sample file here.

@simonw
Copy link
Owner

simonw commented May 19, 2021

I decided to treat this as a usability bug: there's a workaround, which is adding --alter - but it's not at all obvious that you should do that. I addressed this in #259.

@simonw simonw closed this as completed May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants