Skip to content

Commit

Permalink
fix: spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
Blizzara committed Oct 25, 2024
1 parent fd01c2f commit eaf5381
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ class ToSparkExpression(
override def visit(expr: SExpression.IntervalDayLiteral): Literal = {
Util.assertMicroseconds(expr.precision())
// Spark uses a single microseconds Long as the "physical" type for DayTimeInterval
val micros = (expr.days() * Util.SECONDS_PER_DAY + expr.seconds()) * Util.MICROS_PER_SECOND + expr.subseconds()
val micros =
(expr.days() * Util.SECONDS_PER_DAY + expr.seconds()) * Util.MICROS_PER_SECOND +
expr.subseconds()
Literal(micros, ToSubstraitType.convert(expr.getType))
}

Expand Down

0 comments on commit eaf5381

Please sign in to comment.