CSV loadUpdateData fails if column names are separated by spaces

Description

Moving from liquibase-core `3.5.3` to `3.7`, my CSV based changelogs now begin to fail with a NullPointerException during SQL generation. After some debugging, I found that the exception was occuring at at:

liquibase.change.core.LoadDataChange.retrieveMissingColumnLoadTypes(LoadDataChange.java:635)

because the entries, which are checked against the tableColumns map, contained names that no longer remove whitespace. Here is an example of CSV column headers that work in 3.7 but DO NOT work in 3.5.3

Here is an example of CSV column headers that work in both 3.7 and 3.5.3

 

Environment

Postgres 9.5

Status

Reporter

Sam Sudekum

Affects versions

Priority

Minor
Configure