cloud-fan commented on a change in pull request #31613:
URL: https://github.com/apache/spark/pull/31613#discussion_r581633880



##########
File path: sql/core/src/test/resources/sql-tests/results/postgreSQL/join.sql.out
##########
@@ -3225,7 +3225,7 @@ select * from
 struct<>
 -- !query output
 org.apache.spark.sql.AnalysisException
-Reference 'f1' is ambiguous, could be: j.f1, j.f1.; line 2 pos 63
+Reference 'f1' is ambiguous, could be: j.f1#x, j.f1#x.; line 2 pos 63

Review comment:
       It doesn't help because end-users can't specify attr id when referring 
to the column. If a table/relation has duplicated column names, I think the 
only way out is to get the column by position, e.g. 
`df.select(Column(df.logicalPlan.output(2)))`, and attr id doesn't matter.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to