Where is RLE encoding used a lot nowadays? Or is this code mostly an academic exercise?
Doesn't fit the "a lot" usecase, but I wanted to at least give one real world example ;)
Also, I believe you misunderstood how a columnar storage would work as your example would be for encoding values on a single row where I was referring to a column type.