I’m writing a transpiler (of a custom programming language) into SQL. I’m representing tagged discriminated unions in DB by having all of typed columns and discriminator, which specified actual type at runtime (or in other words, which column to take value from – because others are null). In my case, I need to return multipleRead more