IITDBGroup / gprom

GProM is a middleware that adds support for provenance to database backends.
http://www.cs.iit.edu/%7edbgroup/research/gprom.php
Apache License 2.0
8 stars 5 forks source link

ORDER BY is not analyzed correcly #7

Open lordpretzel opened 7 years ago

lordpretzel commented 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

lordpretzel commented 4 years ago

Updates

SELECT a+b AS c FROM R ORDER BY c, a