SUBTRACT - AWS Glue DataBrew

SUBTRACT

Subtracts one number from another and returns the result in a new column.

Parameters
  • sourceColumn1 – The name of an existing column.

  • value1 – A numeric value.

  • sourceColumn2 – The name of an existing column.

  • value2 – A numeric value.

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

Example

{ "RecipeAction": { "Operation": "SUBTRACT", "Parameters": { "sourceColumn1": "weight_kg", "targetColumn": "weight_minus_10_kg", "value2": "10" } } }