Github user adrian-wang commented on a diff in the pull request:
https://github.com/apache/spark/pull/10762#discussion_r49827571
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicOperators.scala
---
@@ -144,6 +147,35 @@ case class Join(
}
}
+ def outerProjectList: Seq[NamedExpression] = {
--- End diff --
For select * from a natural join, we need to use a Project to get rid of
redundant columns.
In mysql, select * from natural join would only contain one row if both
size have the row of the same name. but user do can use something like `t1.a`
or `t2.a` to explicitly reference the column here. Do you think we should
implement it exactly the same? I'm afraid it would be a too complicated change,
but I can do that if necessary.
---
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]