Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/13333#discussion_r64810777
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
---
@@ -1795,7 +1795,9 @@ class Analyzer(
def apply(plan: LogicalPlan): LogicalPlan = plan transform {
case logical: LogicalPlan => logical transformExpressions {
case WindowExpression(wf: WindowFunction, spec) if
spec.orderSpec.isEmpty =>
- failAnalysis(s"WindowFunction $wf requires window to be ordered")
+ failAnalysis(s"WindowFunction $wf requires window to be ordered,
please add ORDER BY " +
--- End diff --
While you are at it, can you fix this and say "Window function" rather than
WindowFunction?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]