BulkColumnRename
Spark Gem
Use the BulkColumnRename Gem to rename multiple columns in your Dataset in a systematic way.
Parameters
Parameter | Description |
---|---|
Columns to rename | Select one or more columns to rename from the dropdown. |
Method | Choose to add a prefix, add a suffix, or use a custom expression to change column names. |
Based on the method you select, you will see an option to enter the prefix, suffix, or expression of your choice.
Examples
Add a prefix
One example is to add the prefix meta_
to tag columns that contain metadata.
Use a custom expression
You can accomplish the same or more complex changes using a custom expression like concat('meta_', column_name)
.