Skip to content

Commit 6f51d3f

Browse files
Addressing review comments. Fixed indendation and removed unused value
1 parent d93d3fd commit 6f51d3f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,8 +706,8 @@ object JdbcUtils extends Logging {
706706
* use in-place of the default data type.
707707
*/
708708
private def parseUserSpecifiedCreateTableColumnTypes(
709-
df: DataFrame,
710-
createTableColumnTypes: String): Map[String, String] = {
709+
df: DataFrame,
710+
createTableColumnTypes: String): Map[String, String] = {
711711
def typeName(f: StructField): String = {
712712
// char/varchar gets translated to string type. Real data type specified by the user
713713
// is available in the field metadata as HIVE_TYPE_STRING

sql/core/src/test/scala/org/apache/spark/sql/jdbc/JDBCWriteSuite.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,9 @@ class JDBCWriteSuite extends SharedSQLContext with BeforeAndAfter {
390390

391391
test("SPARK-10849: create table using user specified column type and verify on target table") {
392392
def testUserSpecifiedColTypes(
393-
df: DataFrame,
394-
createTableColTypes: String,
395-
expectedTypes: Map[String, String]): Unit = {
393+
df: DataFrame,
394+
createTableColTypes: String,
395+
expectedTypes: Map[String, String]): Unit = {
396396
df.write
397397
.mode(SaveMode.Overwrite)
398398
.option("createTableColumnTypes", createTableColTypes)
@@ -418,7 +418,7 @@ class JDBCWriteSuite extends SharedSQLContext with BeforeAndAfter {
418418
}
419419
}
420420

421-
val data = Seq[Row](Row(1, "dave", "Boston", "electric cars"))
421+
val data = Seq[Row](Row(1, "dave", "Boston"))
422422
val schema = StructType(
423423
StructField("id", IntegerType) ::
424424
StructField("first#name", StringType) ::

0 commit comments

Comments
 (0)