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

COALESCE

Returns in a new column the first non-null value found in the array of columns. The order of the columns listed in the function determines the order in which they're searched.

Parameters
  • sourceColumns – A JSON-encoded string representing list of existing columns.

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

Example

{ "RecipeAction": { "Operation": "COALESCE", "Parameters": { "sourceColumns": "[\"nation_position\",\"joined\"]", "targetColumn": "COALESCE Column 1" } } }