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

1 id, name, description, something

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

1 id,name,description,something

 

Environment

Postgres 9.5

Status

Assignee

Unassigned

Reporter

Sam Sudekum

Labels

None

Affects versions

3.7.0

Priority

Minor
Configure