Skip to content

Commit 3e116f5

Browse files
committed
nit
1 parent 0798fca commit 3e116f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ trait CheckAnalysis extends PredicateHelper {
159159
failAnalysis("grouping_id() can only be used with GroupingSets/Cube/Rollup")
160160

161161
case e: Expression if e.children.exists(_.isInstanceOf[WindowFunction]) &&
162-
!e.isInstanceOf[WindowExpression] =>
162+
!e.isInstanceOf[WindowExpression] =>
163163
val w = e.children.find(_.isInstanceOf[WindowFunction]).get
164164
failAnalysis(s"Window function $w requires an OVER clause.")
165165

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/AnalysisSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ class AnalysisSuite extends AnalysisTest with Matchers {
885885
"timestamp <> double at the second column of the second table"))
886886
}
887887

888-
test("throw user facing error when use WindowFunction directly") {
888+
test("SPARK-31975: Throw user facing error when use WindowFunction directly") {
889889
assertAnalysisError(testRelation2.select(RowNumber()),
890890
Seq("Window function row_number() requires an OVER clause."))
891891

0 commit comments

Comments
 (0)