Supported in: Batch
Performs the specified aggregations on the input dataset grouped by a set of columns. Unique values to pivot on must be provided such that the output schema is known ahead of runtime. This improves runtime stability over time.
Transform categories: Aggregate, Popular
alias.Type variable bounds: T accepts Boolean | Byte | Integer | Long | Short | String
Argument values:
miles,airline]airportInput:
| airline | airport | miles |
|---|---|---|
| foundry airways | JFK | 1002345 |
| foundry airways | LHR | 2221324 |
| new air | SFO | 21356673 |
| new air | JFK | 12323456 |
| foundry airways | LHR | 12542352 |
| new air | JFK | 12232355 |
Output:
| airline | new_york_miles | london_miles |
|---|---|---|
| foundry airways | 1002345.0 | 7381838.0 |
| new air | 1.22779055E7 | null |
Argument values:
miles,airline]airportSUFFIXInput:
| airline | airport | miles |
|---|---|---|
| foundry airways | JFK | 1002345 |
| foundry airways | LHR | 2221324 |
| new air | SFO | 21356673 |
| new air | JFK | 12323456 |
| foundry airways | LHR | 12542352 |
| new air | JFK | 12232355 |
Output:
| airline | miles_new_york | miles_london |
|---|---|---|
| foundry airways | 1002345.0 | 7381838.0 |
| new air | 1.22779055E7 | null |