siying opened a new pull request, #41578: URL: https://github.com/apache/spark/pull/41578
### What changes were proposed in this pull request? Replace existing error message when non-time window function is used with streaming to include aggregation function and column. The error message would like like following now: org.apache.spark.sql.AnalysisException: Unsupported window function found in column 'row_number() AS col_name'. Structured streaming only supports time-window aggregation using the `window` function. ### Why are the changes needed? The exiting error message is vague and a full logical plan is included. A user reports that they aren't able to identify what the problem is. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Added a unit test -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org