MaxGekk commented on code in PR #44501:
URL: https://github.com/apache/spark/pull/44501#discussion_r1447423055
##########
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamSuite.scala:
##########
@@ -713,9 +713,7 @@ class StreamSuite extends StreamTest {
"columnName" -> "`rn_col`",
"windowSpec" ->
("(PARTITION BY COL1 ORDER BY COL2 ASC NULLS FIRST ROWS BETWEEN
UNBOUNDED PRECEDING " +
- "AND CURRENT ROW)")),
- queryContext = Array(
- ExpectedContext(fragment = "withColumn", callSitePattern =
getCurrentClassCallSitePattern)))
Review Comment:
Because when we throw the exception at `UnsupportedOperationChecker`:
<img width="847" alt="Screenshot 2024-01-10 at 16 45 27"
src="https://github.com/apache/spark/assets/1580697/5358acbb-d5cb-46c5-9f8a-ff490c23fead">
`origin` of `Window` is empty. It contains nothing because when we construct
it at `Analyzer`, we put captured column context inside of a sequence of
`windowExpressions`:
<img width="835" alt="Screenshot 2024-01-10 at 16 58 00"
src="https://github.com/apache/spark/assets/1580697/c44838da-e427-42cf-993d-f2ffd4c6fdff">
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]