Skip to content

Commit a2fdd4e

Browse files
committed
getDate
1 parent c37832b commit a2fdd4e

File tree

1 file changed

+1
-1
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/Row.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ trait Row extends Serializable {
252252
*
253253
* @throws ClassCastException when data type does not match.
254254
*/
255-
def getDate(i: Int): java.sql.Date = DateUtils.toJavaDate(getInt(i))
255+
def getDate(i: Int): java.sql.Date = apply(i).asInstanceOf[java.sql.Date]
256256

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

0 commit comments

Comments
 (0)