-
Notifications
You must be signed in to change notification settings - Fork 1
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
SQLite bulk load is failing silently #115
Comments
Looking through the resulting SQLite file, it looks like only a subset of the data is being imported, across tables. (For example, only 267,367 officer records, versus an expected 802,103; only 436,591 LLC records, versus an expected 1,309,775; only 436,591 corporation records, versus an expected 1,215,425.) I'm confused about how this is possible, because My best guess is that this is a result of new CSV formats being emitted by the SCC. The data may be so fatally malformed that SQLite is either quietly bailing on the attempt, or rejecting a far higher number of rows than it used to. |
This is suspicious:
Looks to me like the csvkit parser believes there to be just 2 columns. I figured out that the problem (or a problem, anyway) is on line 1,116 of the CSV, or the 2nd line here ("MCCLUNEY KIDS"):
That is, if I pipe the first 1,115 rows through I don't get it. |
If I remove line 1,116 and pipe every preceding line and the one following line through If I construct a file that consists of the leader row and just line 1,116, |
update.sh
is bailing entirely at at this step:Like, so entirely that the exit trap doesn't execute, which is grim.
Here's the entirely unremarkable output:
(There is a constant stream of errors emitted by the importer. This is normal.)
I don't get what's going on here.
The text was updated successfully, but these errors were encountered: