rdblue commented on a change in pull request #25651: [SPARK-28948][SQL] support 
data source v2 in CREATE TABLE USING
URL: https://github.com/apache/spark/pull/25651#discussion_r320516720
 
 

 ##########
 File path: sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala
 ##########
 @@ -216,7 +216,7 @@ class DataFrameReader private[sql](sparkSession: 
SparkSession) extends Logging {
       val finalOptions = sessionOptions ++ extraOptions.toMap ++ pathsOption
       val dsOptions = new CaseInsensitiveStringMap(finalOptions.asJava)
       val table = userSpecifiedSchema match {
-        case Some(schema) => provider.getTable(dsOptions, schema)
+        case Some(schema) => provider.getTable(dsOptions, schema, Array.empty)
 
 Review comment:
   This isn't correct. The `DataFrameReader` does not know that the table is 
unpartitioned.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to