liujinhui1994 commented on a change in pull request #2242:
URL: https://github.com/apache/hudi/pull/2242#discussion_r528447890
##########
File path:
hudi-utilities/src/main/java/org/apache/hudi/utilities/deltastreamer/HoodieDeltaStreamer.java
##########
@@ -546,6 +551,9 @@ public DeltaSyncService(Config cfg, JavaSparkContext jssc,
FileSystem fs, Config
cfg.baseFileFormat =
meta.getTableConfig().getBaseFileFormat().toString();
this.cfg.baseFileFormat = cfg.baseFileFormat;
} else {
+ if (fs.exists(new Path(cfg.targetBasePath))) {
+ fs.delete(new Path(cfg.targetBasePath));
Review comment:
ok
----------------------------------------------------------------
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]