File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
sql/hive/src/main/scala/org/apache/spark/sql/hive Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -146,13 +146,12 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) {
146146 @ transient protected [hive] lazy val sessionState = {
147147 val ss = new SessionState (hiveconf)
148148 set(hiveconf.getAllProperties) // Have SQLConf pick up the initial set of HiveConf.
149-
150- ss.err = new PrintStream (outputBuffer, true , " UTF-8" )
151- ss.out = new PrintStream (outputBuffer, true , " UTF-8" )
152-
153149 ss
154150 }
155151
152+ sessionState.err = new PrintStream (outputBuffer, true , " UTF-8" )
153+ sessionState.out = new PrintStream (outputBuffer, true , " UTF-8" )
154+
156155 override def set (key : String , value : String ): Unit = {
157156 super .set(key, value)
158157 runSqlHive(s " SET $key= $value" )
You can’t perform that action at this time.
0 commit comments