Skip to content

Commit

Permalink
update msg
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses-you committed Jun 12, 2020
1 parent 38df40a commit cd8bbb2
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"Expression '$w' not supported without a window function.")
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("Expression 'row_number()' not supported without a window function."))
Seq("Window function 'row_number()' call requires an OVER clause."))
}
}

0 comments on commit cd8bbb2

Please sign in to comment.