You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/04/24 08:31:19 UTC
[GitHub] [spark] cloud-fan commented on a change in pull request #28294: [SPARK-31519][SQL] Cast in having aggregate expressions returns the wrong result
cloud-fan commented on a change in pull request #28294:
URL: https://github.com/apache/spark/pull/28294#discussion_r414394320
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -2585,9 +2597,12 @@ class Analyzer(
case Filter(condition, _) if hasWindowFunction(condition) =>
failAnalysis("It is not allowed to use window functions inside WHERE and HAVING clauses")
+ case AggregateWithHaving(condition, _) if hasWindowFunction(condition) =>
+ failAnalysis("It is not allowed to use window functions inside WHERE and HAVING clauses")
Review comment:
`WHERE and HAVING` -> `HAVING`
##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -2585,9 +2597,12 @@ class Analyzer(
case Filter(condition, _) if hasWindowFunction(condition) =>
failAnalysis("It is not allowed to use window functions inside WHERE and HAVING clauses")
Review comment:
`WHERE and HAVING` -> `WHERE`
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org