-
- Downloads
[SPARK-18164][SQL] ForeachSink should fail the Spark job if `process` throws exception
## What changes were proposed in this pull request? Fixed the issue that ForeachSink didn't rethrow the exception. ## How was this patch tested? The fixed unit test. Author: Shixiong Zhu <shixiong@databricks.com> Closes #15674 from zsxwing/foreach-sink-error.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/ForeachSink.scala 2 additions, 5 deletions...rg/apache/spark/sql/execution/streaming/ForeachSink.scala
- sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/ForeachSinkSuite.scala 14 additions, 5 deletions...ache/spark/sql/execution/streaming/ForeachSinkSuite.scala
Please register or sign in to comment