You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/06/23 18:47:59 UTC
[GitHub] [hudi] nsivabalan commented on a diff in pull request #5610: [HUDI-4113] fix cannot parse schema when use spark delete sql
nsivabalan commented on code in PR #5610:
URL: https://github.com/apache/hudi/pull/5610#discussion_r905353849
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieSparkSqlWriter.scala:
##########
@@ -225,8 +225,11 @@ object HoodieSparkSqlWriter {
genericRecords.map(gr => keyGenerator.getKey(gr).getPartitionPath).toJavaRDD().distinct().collect()
}
// Create a HoodieWriteClient & issue the delete.
+ val tableMetaClient = HoodieTableMetaClient.builder
+ .setConf(sparkContext.hadoopConfiguration).setBasePath(basePath.toString).build()
+ val schemaStr = new TableSchemaResolver(tableMetaClient).getTableAvroSchema.toString
Review Comment:
can we also fix L197.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org