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

ROW_NUMBER

Returns in a new column a session identifier based on a window created by column names from "group by" and "order by" statements.

Parameters
  • groupByColumns – A JSON-encoded string describing the "group by" columns.

  • orderByColumns – A JSON-encoded string describing the "order by" columns.

  • targetColumn – A name for the newly created column.

Example

{ "Action": { "Operation": "ROW_NUMBER", "Parameters": { "groupByColumns": "[\"is public domain\"]", "orderByColumns": "[\"dimensions\"]", "targetColumn": "Row number" } } }