File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
main/scala/org/apache/spark/sql/catalyst/analysis
test/scala/org/apache/spark/sql/catalyst/analysis Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments