maropu commented on issue #25963: [SPARK-28137][SQL] Add Postgresql function 
to_number.
URL: https://github.com/apache/spark/pull/25963#issuecomment-548615090
 
 
   What's an usecase for this func? Is this useful for users? For example, in 
the example of this PR description, we can just use an explicit cast like this?
   ```
   scala> sql("select cast('-12454.8' as double)").show
   +------------------------+                                                   
   
   |CAST(-12454.8 AS DOUBLE)|
   +------------------------+
   |                -12454.8|
   +------------------------+
   ```

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