bugfix: inputs/input.Makefile: postprocess must be run after cleanup rather than before because it depends on the cleanup having been performed.
this bug was not previously detected because this is only a problem when refreshing a datasource to data in the same format: this would attempt to run an existing postprocess.sql, out of order, instead of starting with no postprocess.sql as we usually do.
this bug was introduced in r8121, when postprocess.sql was being used to rename columns prior to mapping. use the following to view all relevant context lines in that revision's diff: $ diff --unified=4 <(curl -o - 'https://code.nceas.ucsb.edu/code/projects/bien/inputs/input.Makefile?p=8120' 2>/dev/null) <(curl -o - 'https://code.nceas.ucsb.edu/code/projects/bien/inputs/input.Makefile?p=8121' 2>/dev/null)
bugfix: inputs/input.Makefile: postprocess must be run after cleanup rather than before because it depends on the cleanup having been performed.
this bug was not previously detected because this is only a problem when refreshing a datasource to data in the same format: this would attempt to run an existing postprocess.sql, out of order, instead of starting with no postprocess.sql as we usually do.
this bug was introduced in r8121, when postprocess.sql was being used to rename columns prior to mapping. use the following to view all relevant context lines in that revision's diff:
$ diff --unified=4 <(curl -o - 'https://code.nceas.ucsb.edu/code/projects/bien/inputs/input.Makefile?p=8120' 2>/dev/null) <(curl -o - 'https://code.nceas.ucsb.edu/code/projects/bien/inputs/input.Makefile?p=8121' 2>/dev/null)