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 {
159
159
failAnalysis(" grouping_id() can only be used with GroupingSets/Cube/Rollup" )
160
160
161
161
case e : Expression if e.children.exists(_.isInstanceOf [WindowFunction ]) &&
162
- ! e.isInstanceOf [WindowExpression ] =>
162
+ ! e.isInstanceOf [WindowExpression ] =>
163
163
val w = e.children.find(_.isInstanceOf [WindowFunction ]).get
164
164
failAnalysis(s " Window function $w requires an OVER clause. " )
165
165
Original file line number Diff line number Diff line change @@ -885,7 +885,7 @@ class AnalysisSuite extends AnalysisTest with Matchers {
885
885
" timestamp <> double at the second column of the second table" ))
886
886
}
887
887
888
- test(" throw user facing error when use WindowFunction directly" ) {
888
+ test(" SPARK-31975: Throw user facing error when use WindowFunction directly" ) {
889
889
assertAnalysisError(testRelation2.select(RowNumber ()),
890
890
Seq (" Window function row_number() requires an OVER clause." ))
891
891
You can’t perform that action at this time.
0 commit comments