Skip to content

Commit

Permalink
remove brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
davies committed Jul 27, 2014
1 parent 96db384 commit 709d40d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sql/core/src/main/scala/org/apache/spark/sql/SchemaRDD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,10 @@ class SchemaRDD(
arr.asInstanceOf[Array[Any]].map {
element => rowToMap(element.asInstanceOf[Row], struct)
}
case t: java.sql.Timestamp => {
case t: java.sql.Timestamp =>
val c = java.util.Calendar.getInstance()
c.setTimeInMillis(t.getTime())
c
}
case other => other
}
map.put(attrName, arrayValues)
Expand Down

0 comments on commit 709d40d

Please sign in to comment.