cloud-fan commented on a change in pull request #25651: [SPARK-28948][SQL] 
Support passing all Table metadata in TableProvider
URL: https://github.com/apache/spark/pull/25651#discussion_r328441296
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Utils.scala
 ##########
 @@ -57,4 +60,21 @@ private[sql] object DataSourceV2Utils extends Logging {
       case _ => Map.empty
     }
   }
+
+  def loadTableWithUserSpecifiedSchema(
+      provider: TableProvider,
+      schema: StructType,
+      options: CaseInsensitiveStringMap): Table = {
+    provider match {
+      case s: SupportsSpecifiedSchemaPartitioning =>
+        // TODO: `DataFrameReader`/`DataStreamReader` should have an API to 
set user-specified
+        //       partitioning.
 
 Review comment:
   But there is no API to specify the partitioning here, neither 
`DataFrameReader` or `DataStreamReader`.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to