From e340e9fd135ccbae924f5f4a8693ca6024a5413f Mon Sep 17 00:00:00 2001 From: Shyamala Jayabalan Date: Wed, 31 Jul 2024 14:44:58 -0400 Subject: [PATCH] Update functions.scala Adjusted to scala style --- src/main/scala/com/snowflake/snowpark/functions.scala | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/scala/com/snowflake/snowpark/functions.scala b/src/main/scala/com/snowflake/snowpark/functions.scala index f8e62ee4..12b48cc1 100644 --- a/src/main/scala/com/snowflake/snowpark/functions.scala +++ b/src/main/scala/com/snowflake/snowpark/functions.scala @@ -3152,9 +3152,7 @@ object functions { * df = session.createDataFrame(Seq(("CR", "{\"id\": 5, \"name\": \"Jose\", \"age\": 29}"))).toDF(Seq("nationality", "json_string")) * When the result of this function is the only part of * the select statement, no changes are needed: - *
    * df.select(json_tuple(col("json_string"), "id", "name", "age")).show()
-   * 
* *
    * ----------------------
@@ -3218,9 +3216,8 @@ object functions {
    * meaning that the printSchema 
    * function would return different datatypes.
    * To convert the datatype and it to be printed as the expected datatype, 
-   * it should be read on the selectExpr function as 
-   * "json['relative']['age']::integer".
-   * 
+   * it should be read on the 
+   * selectExpr function as "json['relative']['age']::integer".
    * val data_for_json = Seq(
    *   (1, "{\"id\": 172319, \"age\": 41, \"relative\": {\"id\": 885471, \"age\": 29}}"),
    *   (2, "{\"id\": 532161, \"age\": 17, \"relative\":{\"id\": 873513, \"age\": 47}}")