Skip to content

Commit fbe7106

Browse files
szheng79rxin
authored andcommitted
[SPARK-7039][SQL]JDBCRDD: Add support on type NVARCHAR
Issue: https://issues.apache.org/jira/browse/SPARK-7039 Add support to column type NVARCHAR in Sql Server java.sql.Types: http://docs.oracle.com/javase/7/docs/api/java/sql/Types.html Author: szheng79 <[email protected]> Closes apache#5618 from szheng79/patch-1 and squashes the following commits: 10da99c [szheng79] Update JDBCRDD.scala eab0bd8 [szheng79] Add support on type NVARCHAR
1 parent cdf0328 commit fbe7106

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/core/src/main/scala/org/apache/spark/sql/jdbc/JDBCRDD.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ private[sql] object JDBCRDD extends Logging {
6060
case java.sql.Types.NCLOB => StringType
6161
case java.sql.Types.NULL => null
6262
case java.sql.Types.NUMERIC => DecimalType.Unlimited
63+
case java.sql.Types.NVARCHAR => StringType
6364
case java.sql.Types.OTHER => null
6465
case java.sql.Types.REAL => DoubleType
6566
case java.sql.Types.REF => StringType

0 commit comments

Comments
 (0)