chasingegg commented on pull request #35290: URL: https://github.com/apache/spark/pull/35290#issuecomment-1035901626
> > would still produce two same attr ids (like a#1, a#1) with your approach? > > It's OK if we can bind it correctly. I can find some time to implement it if you are not familiar with it. My point is when you do `select a from (select a, a union select a, b)`, it will not fail but produce unexpected result. Of course you could also do some tricks to make `Project` know the two attr ids(like a#1, a#2) are actually different, but I don't think it is a good way to do it. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
