I am afraid that I cannot think of a better solution. Just commenting here so you know we are not ignoring your question, it is just to the best of my knowledge a UNION ALL is right now the only option here
Could you open an issue on Github if there isn’t already? As it is something in my firm that we would strongly need (performance and code readability) we might contribute to it.
We have discussed this recently. We are releasing a revised version of the PG Wire driver soon. After this, we intend to make more changes around our Postgres compatibility, during which we may sequence this feature.
We take contributions and could support you on this. Feel free to connect on Slack/GitHub to discuss it further!