Skip to content

Commit ab9e068

Browse files
committed
scalafmt
1 parent 47ac92e commit ab9e068

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

hub/src/main/scala/ai/chronon/hub/handlers/TimeSeriesHandler.scala

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,17 @@ class TimeSeriesHandler(driftStore: DriftStore) {
119119
// check if we have a numeric / categorical feature. If the percentile drift series has non-null doubles
120120
// then we have a numeric feature at hand
121121
val isNumeric =
122-
Option(tileDriftSeries.percentileDriftSeries).exists(series =>
123-
series.asScala.exists(_ != null))
124-
122+
Option(tileDriftSeries.percentileDriftSeries).exists(series => series.asScala.exists(_ != null))
123+
125124
val lhsList = if (metric == NullMetric) {
126125
Option(tileDriftSeries.nullRatioChangePercentSeries).map(_.asScala).getOrElse(Seq.empty)
127126
} else {
128-
if (isNumeric)
127+
if (isNumeric)
129128
Option(tileDriftSeries.percentileDriftSeries).map(_.asScala).getOrElse(Seq.empty)
130-
else
129+
else
131130
Option(tileDriftSeries.histogramDriftSeries).map(_.asScala).getOrElse(Seq.empty)
132131
}
133-
132+
134133
val points = lhsList.zip(tileDriftSeries.timestamps.asScala).map {
135134
case (v, ts) => TimeSeriesPoint(v, ts)
136135
}

0 commit comments

Comments
 (0)