Skip to content

Commit

Permalink
getDate
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-wang committed Jan 28, 2015
1 parent c37832b commit a2fdd4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ trait Row extends Serializable {
*
* @throws ClassCastException when data type does not match.
*/
def getDate(i: Int): java.sql.Date = DateUtils.toJavaDate(getInt(i))
def getDate(i: Int): java.sql.Date = apply(i).asInstanceOf[java.sql.Date]

/**
* Returns the value at position i of array type as a Scala Seq.
Expand Down

0 comments on commit a2fdd4e

Please sign in to comment.