derived table must have its own alias报错bug

是的,我看了一下,很多场景下都没有考虑 from (… union …) 的情况。如果那边还有什么 union 相关的问题可以发出来一起修一下。