File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
v0.12.0/src/main/scala/org/apache/spark/sql/hive/thriftserver
v0.13.1/src/main/scala/org/apache/spark/sql/hive/thriftserver Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,10 @@ private[hive] class SparkExecuteStatementOperation(
185
185
def run (): Unit = {
186
186
logInfo(s " Running query ' $statement' " )
187
187
setState(OperationState .RUNNING )
188
+ hiveContext.sparkContext.setJobDescription(statement)
189
+ sessionToActivePool.get(parentSession.getSessionHandle).foreach { pool =>
190
+ hiveContext.sparkContext.setLocalProperty(" spark.scheduler.pool" , pool)
191
+ }
188
192
try {
189
193
result = hiveContext.sql(statement)
190
194
logDebug(result.queryExecution.toString())
@@ -194,10 +198,6 @@ private[hive] class SparkExecuteStatementOperation(
194
198
logInfo(s " Setting spark.scheduler.pool= $value for future statements in this session. " )
195
199
case _ =>
196
200
}
197
- hiveContext.sparkContext.setJobDescription(statement)
198
- sessionToActivePool.get(parentSession.getSessionHandle).foreach { pool =>
199
- hiveContext.sparkContext.setLocalProperty(" spark.scheduler.pool" , pool)
200
- }
201
201
iter = {
202
202
val useIncrementalCollect =
203
203
hiveContext.getConf(" spark.sql.thriftServer.incrementalCollect" , " false" ).toBoolean
Original file line number Diff line number Diff line change @@ -156,6 +156,10 @@ private[hive] class SparkExecuteStatementOperation(
156
156
def run (): Unit = {
157
157
logInfo(s " Running query ' $statement' " )
158
158
setState(OperationState .RUNNING )
159
+ hiveContext.sparkContext.setJobDescription(statement)
160
+ sessionToActivePool.get(parentSession.getSessionHandle).foreach { pool =>
161
+ hiveContext.sparkContext.setLocalProperty(" spark.scheduler.pool" , pool)
162
+ }
159
163
try {
160
164
result = hiveContext.sql(statement)
161
165
logDebug(result.queryExecution.toString())
@@ -165,10 +169,6 @@ private[hive] class SparkExecuteStatementOperation(
165
169
logInfo(s " Setting spark.scheduler.pool= $value for future statements in this session. " )
166
170
case _ =>
167
171
}
168
- hiveContext.sparkContext.setJobDescription(statement)
169
- sessionToActivePool.get(parentSession.getSessionHandle).foreach { pool =>
170
- hiveContext.sparkContext.setLocalProperty(" spark.scheduler.pool" , pool)
171
- }
172
172
iter = {
173
173
val useIncrementalCollect =
174
174
hiveContext.getConf(" spark.sql.thriftServer.incrementalCollect" , " false" ).toBoolean
You can’t perform that action at this time.
0 commit comments