[ 
https://issues.apache.org/jira/browse/SPARK-51337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wenchen Fan resolved SPARK-51337.
---------------------------------
    Fix Version/s: 4.1.0
       Resolution: Fixed

Issue resolved by pull request 50104
[https://github.com/apache/spark/pull/50104]

> Add maxRows field to CTERelationDef and CTERelationRef
> ------------------------------------------------------
>
>                 Key: SPARK-51337
>                 URL: https://issues.apache.org/jira/browse/SPARK-51337
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.1.0
>            Reporter: Vladimir Golubev
>            Assignee: Vladimir Golubev
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.1.0
>
>
> The Analyzer validates scalar subqueries by checking if it outputs just one 
> row or not: 
> https://github.com/vladimirg-db/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ValidateSubqueryExpression.scala#L144.
> This works in fixed-point Analyzer, because CTEs are inlined before 
> CheckAnalysis. However, in single-pass Analyzer, we validate the subquery 
> right after its validation, so CTERelationRef must output correct maxRows as 
> well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to