Github user maropu commented on a diff in the pull request: https://github.com/apache/spark/pull/21379#discussion_r195574001 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala --- @@ -309,7 +309,8 @@ class DataFrameReader private[sql](sparkSession: SparkSession) extends Logging { val parts: Array[Partition] = predicates.zipWithIndex.map { case (part, i) => JDBCPartition(part, i) : Partition } - val relation = JDBCRelation(parts, options)(sparkSession) + val schema = JDBCRelation.getSchema(sparkSession.sessionState.conf.resolver, options) + val relation = JDBCRelation(schema, parts, options)(sparkSession) --- End diff -- ok
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org