aokolnychyi commented on a change in pull request #624: Update SparkTableUtil 
to use SessionCatalog and proper MetricsConfig
URL: https://github.com/apache/incubator-iceberg/pull/624#discussion_r344236220
 
 

 ##########
 File path: spark/src/main/scala/org/apache/iceberg/spark/SparkTableUtil.scala
 ##########
 @@ -303,29 +370,38 @@ object SparkTableUtil {
     }
   }
 
-  private def buildManifest(conf: SerializableConfiguration,
-      sparkDataFiles: Seq[SparkDataFile],
-      partitionSpec: PartitionSpec,
-      basePath: String): Iterator[Manifest] = {
-    if (sparkDataFiles.isEmpty) {
-      Seq.empty.iterator
-    } else {
+  private def toSparkPartition(partition: CatalogTablePartition, table: 
CatalogTable): SparkPartition = {
+    val uri = partition.storage.locationUri.map(String.valueOf(_))
+    require(uri.nonEmpty, "Partition URI should be defined")
+
+    val format = partition.storage.serde.orElse(table.provider)
 
 Review comment:
   We use `table.provider` if `partition.storage.serde` is not set (happens 
with the in-memory catalog).

----------------------------------------------------------------
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