Skip to content

Commit

Permalink
revise
Browse files Browse the repository at this point in the history
  • Loading branch information
gengliangwang committed Jan 21, 2019
1 parent a58ef08 commit d3cd59d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ abstract class FileWriteBuilder(options: DataSourceOptions)
lazy val metrics: Map[String, SQLMetric] = BasicWriteJobStatsTracker.metrics
val serializableHadoopConf = new SerializableConfiguration(hadoopConf)
val statsTracker = new BasicWriteJobStatsTracker(serializableHadoopConf, metrics)
// TODO: after partitioning is supported in V2:
// 1. filter out partition columns in `dataColumns`.
// 2. Don't use Seq.empty for `partitionColumns`.
val description = new WriteJobDescription(
uuid = UUID.randomUUID().toString,
serializableHadoopConf = new SerializableConfiguration(job.getConfiguration),
Expand All @@ -111,7 +114,7 @@ abstract class FileWriteBuilder(options: DataSourceOptions)
null

case SaveMode.Overwrite =>
fs.delete(path, true)
committer.deleteWithJob(fs, path, true)
committer.setupJob(job)
new FileBatchWriter(job, description, committer)

Expand Down

0 comments on commit d3cd59d

Please sign in to comment.