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

SIGN

Returns a new column with -1 if the value is less than 0, 0 if the value is 0, and +1 if the value is greater than 0.

Parameters
  • sourceColumn – The name of an existing column.

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

Example

{ "RecipeAction": { "Operation": "SIGN", "Parameters": { "sourceColumn": "age", "targetColumn": "age_SIGN" } } }