Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/4904#discussion_r25947236
--- 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) = {
+ val input = child match {
+ case Project(list, c) => list.filter {
+ case Alias(g: GetField, _) => false
+ case Alias(g: GetItem, _) => false
--- End diff --
Can we just filter out everything except `AttributeReference`? I don't know
all corner cases of `ORDER BY` and feel this way is safer.
---
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]