luluorta commented on a change in pull request #29882:
URL: https://github.com/apache/spark/pull/29882#discussion_r533058089



##########
File path: 
sql/core/src/test/resources/sql-tests/inputs/postgreSQL/select_having.sql
##########
@@ -49,6 +49,7 @@ SELECT 1 AS one FROM test_having HAVING a > 1;
 SELECT 1 AS one FROM test_having HAVING 1 > 2;
 SELECT 1 AS one FROM test_having HAVING 1 < 2;
 
+-- [SPARK-33008] Spark SQL throws an exception

Review comment:
       I found that postgres returns correct results without errors for both `1 
< 2` and `1 > 2`. While Spark SQL always scans the table and throws exceptions 
cause its optimizer does not take this case into account.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to