pengzhiwei2018 commented on a change in pull request #2651:
URL: https://github.com/apache/hudi/pull/2651#discussion_r601220471



##########
File path: 
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/hudi/HoodieSparkSqlWriter.scala
##########
@@ -112,12 +112,15 @@ private[hudi] object HoodieSparkSqlWriter {
         val archiveLogFolder = parameters.getOrElse(
           HoodieTableConfig.HOODIE_ARCHIVELOG_FOLDER_PROP_NAME, "archived")
 
+        val partitionColumns = 
parameters.getOrElse(DataSourceWriteOptions.PARTITIONPATH_FIELD_OPT_KEY, null)

Review comment:
       Hi @vinothchandar , we need get the partition schema and pass it to the 
`HadoopFsRelation`,like this:
   
   HadoopFsRelation(
           fileIndex,
           fileIndex.partitionSchema,
           fileIndex.dataSchema,
           bucketSpec = None,
           fileFormat = new ParquetFileFormat,
           optParams)(sqlContext.sparkSession)
   By the generator, it is hard to construct the partition schema. So we need 
the partition columns.




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


Reply via email to