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

dobjobs import failing on NULL row #319

Closed
austensen opened this issue Feb 22, 2024 · 1 comment
Closed

dobjobs import failing on NULL row #319

austensen opened this issue Feb 22, 2024 · 1 comment

Comments

@austensen
Copy link
Member

InvalidTextRepresentation: invalid input syntax for type boolean: ""
LINE 1: ...L,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'','',NULL...
                                                             ^
error_handling(/app/load_dataset.py:375)
yield
main(/app/load_dataset.py:406)
load_dataset(dataset)
load_dataset(/app/load_dataset.py:344)
ds.db_import()
db_import(/usr/local/lib/python3.9/site-packages/nycdb/dataset.py:73)
self.import_schema(schema)
import_schema(/usr/local/lib/python3.9/site-packages/nycdb/dataset.py:124)
self.db.insert_rows(batch, table_name=schema['table_name'])
insert_rows(/usr/local/lib/python3.9/site-packages/nycdb/database.py:45)
curs.execute(sql.insert_many(curs, table_name, rows))
execute(/usr/local/lib/python3.9/site-packages/psycopg/cursor.py:737)
raise ex.with_traceback(None)
@austensen
Copy link
Member Author

Looks like this got fixed in the raw data

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