LEN - 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).

LEN

Returns in a new column the length of strings from the source column or of custom strings.

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": "LEN", "Parameters": { "sourceColumn": "last_name", "targetColumn": "last_name_len" } } }

{ "RecipeAction": { "Operation": "LEN", "Parameters": { "value": "Hello", "targetColumn": "hello_len" } } }