hem1891 opened a new pull request #25570: [Spark 23519][SQL] create view should 
work from query with duplicate output columns
URL: https://github.com/apache/spark/pull/25570
 
 
   Before this PR following queries would fail
   
   `CREATE TABLE t23519 AS SELECT 1 AS c1
   CREATE VIEW v23519 (c1, c2) AS SELECT c1, c1 FROM t23519`
   
   This PR checks for duplicate columns from view schema(aliasedSchema) instead 
of the query output schema(analyzedSchema), allowing such query to work.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

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

Reply via email to