TRIM - Amazon Glue DataBrew
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

TRIM

Removes leading and trailing white space from the strings in the source column or custom strings, and returns the result in a new column. Spaces between words aren't removed.

Parameters
  • sourceColumn – The name of an existing column.

  • value – A character string to evaluate.

  • targetColumn – The name of the new column to be created.

Note

You can specify either sourceColumn or value, but not both.

Examples

{ "RecipeAction": { "Operation": "TRIM", "Parameters": { "sourceColumn": "nationality", "targetColumn": "nationality_trim" } } }

{ "RecipeAction": { "Operation": "TRIM", "Parameters": { "value": " This string should be trimmed ", "targetColumn": "string_trimmed" } } }