AngersZhuuuu edited a comment on issue #26141: [SPARK-29492][SQL]Reset HiveSession's SessionState conf's ClassLoader when sync mode URL: https://github.com/apache/spark/pull/26141#issuecomment-542925356 > I don't understand it enough to evaluate, really. Why is it different in 'sync' mode - do you mean not running in the background? yes, sync mode will just execute statement in the session thread and return OperationHandle after finish execute. Since all session thread have a ThreadLocal SessionState variable. when code running to HiveTableScanExec#addColumnMetadataToConf , it will use this SessionState variable. So we need to reset it.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
