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

IS_EVEN

Returns a Boolean value in a new column that indicates whether the source column or value is even. If the source column or value is a decimal, the result is false.

Parameters
  • sourceColumn – The name of an existing column.

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

  • trueString – A string that indicates whether the value is even.

  • falseString – A string that indicates whether the value is not even.

Example

{ "RecipeAction": { "Operation": "IS_EVEN", "Parameters": { "falseString": "Value is odd", "sourceColumn": "height_cm", "targetColumn": "height_cm_IS_EVEN", "trueString": "Value is even" } } }