复现流程:
第一条sql: select * from (select 1) group by 1;
第二条sql: select * from (select 1 union all select 2) group by 1;
期望现象:
都报错ERROR 1248 (42000): Every derived table must have its own alias
实际现象:
第二条sql可以正常进行
版本4.0.13
复现流程:
第一条sql: select * from (select 1) group by 1;
第二条sql: select * from (select 1 union all select 2) group by 1;
期望现象:
都报错ERROR 1248 (42000): Every derived table must have its own alias
实际现象:
第二条sql报错ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your TiDB version for the right syntax to use line 1 column 49 near “group by 1”