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

    https://github.com/apache/spark/pull/20773#discussion_r173199589
  
    --- Diff: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/MiscExpressionsSuite.scala
 ---
    @@ -43,4 +45,21 @@ class MiscExpressionsSuite extends SparkFunSuite with 
ExpressionEvalHelper {
         checkEvaluation(Length(Uuid()), 36)
         assert(evaluateWithoutCodegen(Uuid()) !== 
evaluateWithoutCodegen(Uuid()))
       }
    +
    +  test("PrintToStderr") {
    +    val errorStream = new java.io.ByteArrayOutputStream()
    +    val systemErr = System.err
    --- End diff --
    
    Can you wrap setting the `stderr` in a `try { ... } finally { ... }`?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to