Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/6964#discussion_r33104590
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/sources/hadoopFsRelationSuites.scala
---
@@ -497,6 +503,79 @@ abstract class HadoopFsRelationTest extends QueryTest
with SQLTestUtils {
}
}
}
+
+ test("SPARK-8578 specified custom output committer will not be used to
append data") {
+ val clonedConf = new Configuration(configuration)
+ try {
+ val df = sqlContext.range(1, 10).toDF("i")
+ withTempPath { dir =>
+
df.write.mode("append").format(dataSourceName).save(dir.getCanonicalPath)
+ configuration.set("spark.sql.sources.outputCommitterClass",
+ "org.apache.spark.sql.sources.AlwaysFailOutputCommitter")
--- End diff --
This might be better:
```scala
configuration.set(
SQLConf.OUTPUT_COMMITTER_CLASS.key,
classOf[AlwaysFailOutputCommitter].getName)
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]