Closed k-schmid closed 9 months ago
@k-schmid I remember when writing that code that I was definetly not proud of this 'quick fix' solution - it had to break some day. I'll look into it.
@k-schmid #470 should solve the error
@FlorianK13 thanks a lot for the fast response.
@FlorianK13 any updates on this?
@chrwm Are we ready for the 0.14.0 release?
@k-schmid We have just release v0.14.0 and it should be fixed now
Description of the issue
When downloading (and extracting) the latest XML using the bulk download a stumble in to an error regarding new columns. The method add_missing_column_to_table tries to split the psycopg2 undefined column error message such that a column name is found. However the splitting argument "»" and "«" cannot be found.
See the full traceback:
Ideas of solution
I think the string splitting should be replaced by a more robust approach. E.g. check which columns are already in the table and which are assumed to be there prior to writing to the table. There are some approach listed here: https://www.geeksforgeeks.org/get-column-names-from-postgresql-table-using-psycopg2/
Context and Environment
Workflow checklist