zero323 commented on pull request #28386:
URL: https://github.com/apache/spark/pull/28386#issuecomment-728475705


   In isolation it seems sensible.
   
   What bothers me though, is that `mutate` and `select` have different 
behavior. 
   
   ```r
   > select(sql("SELECT * FROM range(1)"), log(lit(1 + 1 + 1)))
   SparkDataFrame[ln(3.0):double]
   > mutate(sql("SELECT * FROM range(1)"), log(lit(1 + 1 + 1)))
   SparkDataFrame[id:bigint, log(lit(1 + 1 + 1)):double]
   ```
   
   Ideally, we'd like both to behave the same way (possibly resolving the 
problem we have here completely), that's however a breaking change.


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