Skip to content

Commit

Permalink
fix(build): Fix types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Asmoday committed Jan 22, 2025
1 parent d3b661a commit 10824d5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ private[hive] class SparkSQLDriver(val context: SQLContext = SparkSQLEnv.sqlCont
} catch {
case st: SparkThrowable =>
logDebug(s"Failed in [$command]", st)
throw st
new CommandProcessorResponse(1, ExceptionUtils.getStackTrace(st), st.getSqlState, st)
case cause: Throwable =>
logError(s"Failed in [$command]", cause)
throw new QueryExecutionException(ExceptionUtils.getStackTrace(cause))
new CommandProcessorResponse(1, ExceptionUtils.getStackTrace(cause), null, cause)
}
}

Expand Down

0 comments on commit 10824d5

Please sign in to comment.