brkyvz 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_r321889377
##########
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:
yeah, this is one of the most annoying and confusing behaviors of
DataSourceV1. Being able to provide a schema but not partitioning information,
which leads to minutes of partition schema inference.
----------------------------------------------------------------
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]