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.”

EXTRACT_VALUE - AWS Glue DataBrew

EXTRACT_VALUE

Creates a new column with an extracted value from a user-specified path. If the source column is of the Map, Array, or Struct type, each field in the path should be escaped using back ticks (for example, `name`).

Parameters
  • targetColumn – The name of the target column.

  • sourceColumn – Name of the source column from which the value is to be extracted.

  • path – The path to the specific key that the user wants to extract. If the source column is of the Map, Array, or Struct type, each field in the path should be escaped using back ticks (for example, `name`).

    Consider the following example of user information:

    user { name: “Ammy” address: { state: "CA", zipcode: 12345 }, phoneNumber:{"home": "123123123", "work": "456456456"} citizenship: ["Canada", "USA", "Mexico", "India"] }

    The following are examples of the paths you would provide, depending on the type of the source column:

    • If the source column is of the type map, the path for extracting the home phone number is:

      `user`.`phoneNumber`.`home`

    • If the source column is of the type array, the path for extracting the second "citizenship" value is:

      `user`.`citizenship`[1]

    • If the source column is of the type struct, the path for extracting the zip code is:

      `user`.`address`.`zipcode`

Example

{ "RecipeAction": { "Operation": "EXTRACT_VALUE", "Parameters": { "sourceColumn": "age", "targetColumn": "columnName", "path": "`age`.`name`", } } }
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.