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

REPEAT_STRING

Repeats the strings in the source column or custom input value a specified number of times, and returns the result in a new column.

Parameters
  • sourceColumn – The name of an existing column.

  • value – A character string to evaluate.

  • count – The number of times to repeat the string.

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

Note

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

Examples

{ "RecipeAction": { "Operation": "REPEAT_STRING", "Parameters": { "count": 3, "sourceColumn": "last_name", "targetColumn": "last_name_repeat_string" } } }

{ "RecipeAction": { "Operation": "REPEAT_STRING", "Parameters": { "count": 80, "value": "*", "targetColumn": "80_stars" } } }