1
0

[HUDI-880] Replace part of spark context by hadoop configuration in HoodieTable. (#1614)

This commit is contained in:
Shen Hong
2020-05-12 14:33:57 +08:00
committed by GitHub
parent 5d37e66b7e
commit 295d00beea
28 changed files with 135 additions and 125 deletions

View File

@@ -55,7 +55,7 @@ class IncrementalRelation(val sqlContext: SQLContext,
}
// TODO : Figure out a valid HoodieWriteConfig
private val hoodieTable = HoodieTable.create(metaClient, HoodieWriteConfig.newBuilder().withPath(basePath).build(),
sqlContext.sparkContext)
sqlContext.sparkContext.hadoopConfiguration)
val commitTimeline = hoodieTable.getMetaClient.getCommitTimeline.filterCompletedInstants()
if (commitTimeline.empty()) {
throw new HoodieException("No instants to incrementally pull")