Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-gmahadevan committed Aug 20, 2024
1 parent de56820 commit e6a0da8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions src/main/scala/com/snowflake/snowpark/functions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ package com.snowflake.snowpark

import com.snowflake.snowpark.internal.analyzer._
import com.snowflake.snowpark.internal.ScalaFunctions._
import com.snowflake.snowpark.internal.{ErrorMessage, OpenTelemetry, UDXRegistrationHandler, Utils}
import com.snowflake.snowpark.internal.{
ErrorMessage,
OpenTelemetry,
UDXRegistrationHandler,
Utils
}
import com.snowflake.snowpark.types.{FloatType, TimestampType}

import scala.reflect.runtime.universe.TypeTag
Expand Down Expand Up @@ -3523,7 +3528,7 @@ object functions {
* |-1231198046297539927 |
* ------------------------
* }}}
*
*
* @since 1.14.0
* @return Random number.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2282,8 +2282,8 @@ trait FunctionSuite extends TestData {
}

test("locate Column function") {
val input = session.createDataFrame(Seq
(("scala", "java scala python"), ("b", "abcd"))).toDF("a", "b")
val input =
session.createDataFrame(Seq(("scala", "java scala python"), ("b", "abcd"))).toDF("a", "b")
val expected = Seq((6), (2)).toDF("locate")
checkAnswer(input.select(locate(col("a"), col("b"), 1).as("locate")), expected, sort = false)
}
Expand All @@ -2305,7 +2305,7 @@ trait FunctionSuite extends TestData {
test("randn seed function") {
val input = session.createDataFrame(Seq((1), (2), (3))).toDF("a")
val expected = Seq((5777523539921853504L), (-8190739547906189845L), (-1138438814981368515L))
.toDF("randn_with_seed")
.toDF("randn_with_seed")
val df = input.withColumn("randn_with_seed", randn(123L)).select("randn_with_seed")

checkAnswer(df, expected, sort = false)
Expand Down

0 comments on commit e6a0da8

Please sign in to comment.