Github user cloud-fan commented on the pull request: https://github.com/apache/spark/pull/2542#issuecomment-56940392 Nice catch! I think the problem is: for a table(a string, b string), when we run "select a.b from test a join test b", we have 2 options to resolve `a.b`. One is "table a, column b", another is "table b, column a.b". Here we know that column a don't have a sub column b, so "table b, column a.b" is invalid, the only option is "table a, column b". However, the system didn't know this and report "ambiguousReferences". But what if we really have a sub column b for column a? Should we report "ambiguousReferences"? @marmbrus What do you think?
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org