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

FLAG_DUPLICATES_IN_COLUMN

Returns a new column with a specified value in each row that indicates whether the value in the row's source column matches a value in an earlier row of the source column. When matches are found, they are flagged as duplicates. The initial occurrence is not flagged, because it doesn't match an earlier row.

Parameters
  • sourceColumn – Name of the source column.

  • targetColumn – Name of the target column.

  • trueString – String to be inserted in the target column when a source column value duplicates an earlier value in that column.

  • falseString – String to be inserted in the target column when a source column value is distinct from earlier values in that column.

Example

{ "RecipeAction": { "Operation": "FLAG_DUPLICATES_IN_COLUMN", "Parameters": { "sourceColumn": "Name", "targetColumn": "Duplicate", "trueString": "TRUE", "falseString": "FALSE" } } }