alamb commented on code in PR #10234:
URL: https://github.com/apache/datafusion/pull/10234#discussion_r1585593207


##########
datafusion/sqllogictest/test_files/order.slt:
##########
@@ -888,6 +888,30 @@ select column2, column1 from foo ORDER BY column2 desc, 
column1 desc;
 [1] 4
 [0] 2
 
+# Test issue: https://github.com/apache/datafusion/issues/10013
+# There is both a HAVING clause and an ORDER BY clause in the query.
+query I
+SELECT
+   SUM(column1)
+FROM foo

Review Comment:
   Could we also add an example that doesn't have a HAVING as well as one with 
GROUP BY? something like this perhaps
   
   ```sql
   SELECT SUM(column1) FROM foo ORDER BY SUM(column1)
   ```
   
   ```sql
   SELECT column2 FROM foo ORDER BY SUM(column1)
   ```
   
   ```sql
   SELECT SUM(column1) FROM foo ORDER BY SUM(column1) GROUP BY column2
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to