I have a list of files in BigQuery. A very simplified table would look like:
| Name | Parent |
|---|---|
| First | / |
| Second | First |
| Third | First |
| Another | Third |
| This file | Third |
| Test | Third |
| FileA | Test |
| Last | FileA |
Is it possible to generate:
| Name | Path |
|---|---|
| First | / |
| Third | /First/ |
| Another | /First/Third/ |
| This file | /First/Third/ |
| Test | /First/Third |
| FileA | /First/Third/Test |
| Last | /First/Third/Test/FileA |