Is there a way to convert the following data (an array of "tuples") in Athena SQL to the following format?
Note: that the number of items in the array is not defined and there can be many, but they are always paired.
From:
[1234, 1, 5678, 2, ..., 9012, 3]
To:
| ID | Val |
|---|---|
| 1234 | 1 |
| 5678 | 2 |
| 9012 | 3 |