Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

SUBSTRING - AWS Glue DataBrew

SUBSTRING

Returns in a new column some or all of the specified strings in the source column, based on the user-defined starting and ending index values.

Parameters
  • sourceColumn – The name of an existing column.

  • startPosition – The character position to begin with, from the left end of the string.

  • endPosition – The character position to end with, from the left end of the string.

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

Note

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

Example

{ "RecipeAction": { "Operation": "SUBSTRING", "Parameters": { "sourceColumn": "last_name", "startPosition": "5", "endPosition": "8", "targetColumn": "chars_5_through_8" } } }
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.