pan3793 commented on code in PR #52306: URL: https://github.com/apache/spark/pull/52306#discussion_r2341703483
########## sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLEnv.scala: ########## @@ -33,6 +33,9 @@ import org.apache.spark.util.Utils private[hive] object SparkSQLEnv extends Logging { logDebug("Initializing SparkSQLEnv") + val out = new PrintStream(System.out, true, UTF_8) + val err = new PrintStream(System.err, true, UTF_8) Review Comment: might be worth adding comments to explain the intention is to get the original stdout and stderr before initializing `RedirectConsolePlugin` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org