Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/6964#discussion_r33104717
--- 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")
+ // Since Parquet has its own output committer setting, also set it
+ // to AlwaysFailParquetOutputCommitter at here.
+ configuration.set("spark.sql.parquet.output.committer.class",
+ "org.apache.spark.sql.sources.AlwaysFailParquetOutputCommitter")
+ // Because there data already exists,
+ // this append should success because we will use the output
committer associated
--- End diff --
"success" => "succeed"
---
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]