I have the following catalog and want to use AWS glue to flatten it?
| accountId | resourceId | items |
|-----------|------------|-----------------------------------------------------------------|
| 1 | r1 | [{name: "tool", version: "1.0"}, {name: "app", version: "1.0"}] |
| 1 | r2 | [{name: "tool", version: "2.0"}, {name: "app", version: "2.0"}] |
| 2 | r3 | [{name: "tool", version: "3.0"}, {name: "app", version: "3.0"}] |
I want to flatten it to following:
| accountId | resourceId | name | version |
|-----------|------------|------|---------|
| 1 | r1 | tool | 1.0 |
| 1 | r1 | app | 1.0 |
| 1 | r2 | tool | 2.0 |
| 1 | r2 | app | 2.0 |
| 2 | r3 | tool | 3.0 |
| 2 | r3 | app | 3.0 |
Relationalize.apply can only flatten the nested items, it can not bring the accountId and resourceId to the result, is there a way to solve this?