beliefer commented on a change in pull request #25963: [SPARK-28137][SQL] Add 
Postgresql function to_number.
URL: https://github.com/apache/spark/pull/25963#discussion_r329346744
 
 

 ##########
 File path: sql/core/src/main/scala/org/apache/spark/sql/functions.scala
 ##########
 @@ -2258,6 +2258,26 @@ object functions {
     FormatNumber(x.expr, lit(d).expr)
   }
 
+  /**
+   * Convert a string to a number based on the pattern.
+   *
+   * The pattern can consist of the following characters:
+   *   '9': digit position (can be dropped if insignificant)
+   *   '0': digit position (will not be dropped, even if insignificant)
+   *   '.': decimal point (only allowed once)
+   *   ',': group (thousands) separator
+   *   'S': sign anchored to number (uses locale)
+   *   'L': currency symbol (uses locale)
+   *   'D': decimal point (uses locale)
+   *   'G': group separator (uses locale)
+   *
+   * @group string_funcs
+   * @since 3.0.0
+   */
+  def to_number(x: Column, format: String): Column = withExpr {
 
 Review comment:
   OK. I will remove 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.
 
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