Skip to content

Commit 0e2b9c6

Browse files
After review: reverting unrelated/stylistic changes
1 parent 337ad48 commit 0e2b9c6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sql/core/src/main/scala/org/apache/spark/sql/streaming/progress.scala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ class SourceProgress protected[sql](
179179
}
180180

181181
("description" -> JString(description)) ~
182-
("startOffset" -> tryParse(startOffset)) ~
183-
("endOffset" -> tryParse(endOffset)) ~
184-
("numInputRows" -> JInt(numInputRows)) ~
185-
("inputRowsPerSecond" -> safeDoubleToJValue(inputRowsPerSecond)) ~
186-
("processedRowsPerSecond" -> safeDoubleToJValue(processedRowsPerSecond))
182+
("startOffset" -> tryParse(startOffset)) ~
183+
("endOffset" -> tryParse(endOffset)) ~
184+
("numInputRows" -> JInt(numInputRows)) ~
185+
("inputRowsPerSecond" -> safeDoubleToJValue(inputRowsPerSecond)) ~
186+
("processedRowsPerSecond" -> safeDoubleToJValue(processedRowsPerSecond))
187187
}
188188

189189
private def tryParse(json: String) = try {
@@ -202,7 +202,7 @@ class SourceProgress protected[sql](
202202
*/
203203
@InterfaceStability.Evolving
204204
class SinkProgress protected[sql](
205-
val description: String) extends Serializable {
205+
val description: String) extends Serializable {
206206

207207
/** The compact JSON representation of this progress. */
208208
def json: String = compact(render(jsonValue))
@@ -213,6 +213,6 @@ class SinkProgress protected[sql](
213213
override def toString: String = prettyJson
214214

215215
private[sql] def jsonValue: JValue = {
216-
"description" -> JString(description)
216+
("description" -> JString(description))
217217
}
218218
}

0 commit comments

Comments
 (0)