dongjoon-hyun commented on code in PR #60005:
URL: https://github.com/apache/spark/pull/60005#discussion_r4444922013


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveTableSpec.scala:
##########
@@ -103,6 +104,15 @@ object ResolveTableSpec extends Rule[LogicalPlan] {
               messageParameters = Map("checkCondition" -> check.condition)
             )
           }
+          check.child.collectFirst {
+            case e @ (_: AggregateExpression | _: Grouping | _: GroupingID |
+                _: WindowExpression | _: WindowFunction) => e

Review Comment:
   Thank you for the review and approval, @peter-toth. You're right. I 
confirmed it on the head: `size(explode(array(id))) > 0`, `posexplode`, 
`inline`, and `explode(array(id)) IS NOT NULL` pass `CREATE TABLE` and `REPLACE 
TABLE`, and every later write fails with 
`UNSUPPORTED_GENERATOR.OUTSIDE_SELECT`. I'd like to keep this PR to aggregate 
and window functions, and I'll handle generators in a separate JIRA issue and 
PR.
   



-- 
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]

Reply via email to