I want to do something like this using BigQuery.
Input Table
| Col1 | Col2 | Col3 | Col4 |
|---|---|---|---|
| 1 | A,B,C | 123 | 789 |
Output Table
| ID | COL | VALUE |
|---|---|---|
| 1 | COL1 | 1 |
| 1 | COL2 | A,B,C |
| 1 | COL3 | 123 |
| 1 | COL4 | 789 |
I got this in hive with LATERAL VIEW explode(MAP), but I can't get the same in bigquery.
