Open lordpretzel opened 7 years ago
The analyzer apparently does use column references to the input of the SELECT clause and not the SELECT clause output for ORDER BY expressions. E.g.,
SELECT a, a AS c, b FROM R ORDER BY a,b;
can be used to repeat the problem
SELECT a+b AS c FROM R ORDER BY c, a
The analyzer apparently does use column references to the input of the SELECT clause and not the SELECT clause output for ORDER BY expressions. E.g.,
can be used to repeat the problem