I have flat file data in the following format:
d1 | d2 | d3 | d4
-------------------------------------------
Heading | | |
| Subheading | |
| | Entry1 |
| | Entry2 |
| Another sub | |
| | Entry3 |
| | Entry4 |
| | | Subentry
I can read the flat dsv just fine, and would like to stratify that, if at all possible. I was wondering if I can, inside of .parentId(), access previous rows and check if that is the parent.
Or do I write my own tree function?