Github user jkbradley commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20686#discussion_r173580629
  
    --- Diff: mllib/src/test/scala/org/apache/spark/ml/util/MLTest.scala ---
    @@ -108,5 +111,29 @@ trait MLTest extends StreamTest with TempDirectory { 
self: Suite =>
           otherResultCols: _*)(globalCheckFunction)
         testTransformerOnDF(dataframe, transformer, firstResultCol,
           otherResultCols: _*)(globalCheckFunction)
    +    }
    +
    +  def testTransformerByInterceptingException[A : Encoder](
    +    dataframe: DataFrame,
    +    transformer: Transformer,
    +    expectedMessagePart : String,
    +    firstResultCol: String) {
    +
    +    def hasExpectedMessage(exception: Throwable): Boolean =
    --- End diff --
    
    Just curious: Did you have to add the getCause case because of streaming 
throwing wrapped exceptions?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to