Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/4904#discussion_r25972701
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicOperators.scala
---
@@ -152,6 +153,18 @@ case class Sort(
global: Boolean,
child: LogicalPlan) extends UnaryNode {
override def output = child.output
+
+ override def resolveChildren(name: String, resolver: Resolver) = {
--- End diff --
This feels kind of hacky to me as its mixing the particulars of analysis
for SQL into the logical plan. Could we instead just make resolve not do
partial resolution, where we can resolve the base attribute but not the
GetFields that are on top. I think this change is the root cause of the
regression.
---
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]