umehrot2 commented on code in PR #6468:
URL: https://github.com/apache/hudi/pull/6468#discussion_r961067147


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/DefaultSource.scala:
##########
@@ -181,6 +181,7 @@ class DefaultSource extends RelationProvider
       HoodieSparkSqlWriter.bootstrap(sqlContext, mode, optParams, 
dfWithoutMetaCols)
     } else {
       HoodieSparkSqlWriter.write(sqlContext, mode, optParams, 
dfWithoutMetaCols)
+      HoodieSparkSqlWriter.cleanup()

Review Comment:
   The reason for doing it here is that, `HoodieSparkSqlWriter` is also used by 
`HoodieStreamingSink`. We don't want to be closing the reporter for the spark 
streaming job.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to