Skip to content

Commit 3e09655

Browse files
committed
Use getAs for Date column.
1 parent 43b9fb4 commit 3e09655

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlSerializer2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ private[sql] object SparkSqlSerializer2 {
243243
out.writeByte(NULL)
244244
} else {
245245
out.writeByte(NOT_NULL)
246-
out.writeInt(row.getInt(i))
246+
out.writeInt(row.getAs[Int](i))
247247
}
248248

249249
case TimestampType =>

0 commit comments

Comments
 (0)