We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffaee42 commit a984f3bCopy full SHA for a984f3b
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JDBCRDD.scala
@@ -82,8 +82,8 @@ object JDBCRDD extends Logging {
82
* @return A Catalyst schema corresponding to columns in the given order.
83
*/
84
private def pruneSchema(schema: StructType, columns: Array[String]): StructType = {
85
- val fieldMap = Map(schema.fields.map(x => x.name -> x): _*)
86
- new StructType(columns.map(name => fieldMap(name)))
+ val fieldMap = Map(schema.fields.map(x => x.name -> x): _*)
+ new StructType(columns.map(name => fieldMap(name)))
87
}
88
89
/**
0 commit comments