Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/17713#discussion_r115114174
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
---
@@ -1427,15 +1225,8 @@ class Analyzer(
// Step 2: If the subquery plan is fully resolved, pull the outer
references and record
// them as children of SubqueryExpression.
if (current.resolved) {
- // Make sure the resolved query has the required number of output
columns. This is only
- // needed for Scalar and IN subqueries.
- if (requiredColumns > 0 && requiredColumns != current.output.size)
{
- failAnalysis(s"The number of columns in the subquery
(${current.output.size}) " +
- s"does not match the required number of columns
($requiredColumns)")
--- End diff --
In the new changes, it sounds like only `In` subquery detects this issue.
How about the other subquery expression types? A bug?
---
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]