final class atoti.MultiRowArrayConversion
Convert an external table where array values are stored with one value per row to a table with array columns. The external table must have anindex_column and at least one “value” column representing the array elements.
All the table columns except from index_column and the array_columns will become key columns.
Example
external_table has an INDEX column:
| PRODUCT | INDEX | QUANTITY |
|---|---|---|
| product_1 | 0 | 10 |
| product_1 | 1 | 20 |
| product_1 | 2 | 15 |
| product_1 | 3 | 25 |
| product_1 | 4 | 10 |
| product_2 | 0 | 50 |
| product_2 | 1 | 65 |
| product_2 | 2 | 55 |
| product_2 | 3 | 30 |
| product_2 | 4 | 80 |