Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses-you committed Jun 13, 2020
1 parent cd8bbb2 commit 335935f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ trait CheckAnalysis extends PredicateHelper {
failAnalysis("grouping_id() can only be used with GroupingSets/Cube/Rollup")

case Alias(w: WindowFunction, _) =>
failAnalysis(s"Window function '$w' call requires an OVER clause.")
failAnalysis(s"Window function $w call requires an OVER clause.")

case w @ WindowExpression(AggregateExpression(_, _, true, _, _), _) =>
failAnalysis(s"Distinct window functions are not supported: $w")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,6 @@ class AnalysisSuite extends AnalysisTest with Matchers {

test("throw user facing error when use WindowFunction directly") {
assertAnalysisError(testRelation2.select(RowNumber()),
Seq("Window function 'row_number()' call requires an OVER clause."))
Seq("Window function row_number() call requires an OVER clause."))
}
}

0 comments on commit 335935f

Please sign in to comment.