Wrangler rename directive cannot rename if the first row does not contain all the columns

Description

The directive only operates on the first row, if a column does not exist in the first row but exist in following rows, the rename will fail like "Error encountered while executing 'rename' : Column 'body_2' does not exist. Please add the column 'body_2' before renaming 'body_2' to 'ab'."

To reproduce, create a csv file where the first row does not contain all the columns and the second row contain all the columns and rename the missing column

Release Notes

None
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Yaojie Feng

Reporter

Yaojie Feng