From abdf0b2a5e0deace0aa455adc88b8ff3ef647ec1 Mon Sep 17 00:00:00 2001 From: Tuan Pham Date: Sat, 5 Oct 2024 22:57:40 +1000 Subject: [PATCH] formatting --- .../spark/sql/catalyst/expressions/RandGamma.scala | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/unsafe/src/main/scala/org/apache/spark/sql/catalyst/expressions/RandGamma.scala b/unsafe/src/main/scala/org/apache/spark/sql/catalyst/expressions/RandGamma.scala index 41af93f..ce3aed5 100644 --- a/unsafe/src/main/scala/org/apache/spark/sql/catalyst/expressions/RandGamma.scala +++ b/unsafe/src/main/scala/org/apache/spark/sql/catalyst/expressions/RandGamma.scala @@ -88,8 +88,9 @@ object RandGamma { def apply(seed: Long, shape: Double, scale: Double): RandGamma = RandGamma(Literal(seed, LongType), Literal(shape, DoubleType), Literal(scale, DoubleType)) - def defaultSeedExpression: Expression = Try(Class.forName("org.apache.spark.sql.catalyst.analysis.UnresolvedSeed")) match { - case Success(clazz) => clazz.getConstructor().newInstance().asInstanceOf[Expression] - case _ => Literal(Utils.random.nextLong(), LongType) - } + def defaultSeedExpression: Expression = + Try(Class.forName("org.apache.spark.sql.catalyst.analysis.UnresolvedSeed")) match { + case Success(clazz) => clazz.getConstructor().newInstance().asInstanceOf[Expression] + case _ => Literal(Utils.random.nextLong(), LongType) + } }