[
https://issues.apache.org/jira/browse/HIVE-28934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17951281#comment-17951281
]
Denys Kuzmenko commented on HIVE-28934:
---------------------------------------
{code}
public abstract class TaskCompiler {
public void init(QueryState queryState, LogHelper console, Hive db) {
this.conf = queryState.getConf();
}
{code}
A better way to do it would be
{code}
SessionStateUtil.getQueryState(conf).map(QueryState::getConf).ifPresent(conf ->
conf.setBoolVar(ConfVars.HIVE_VECTORIZATION_ENABLED, false));
{code}
I'll fix it in a follow-up PR
> PlanUtils.configureJobPropertiesForStorageHandler should use hive session
> configuration
> ---------------------------------------------------------------------------------------
>
> Key: HIVE-28934
> URL: https://issues.apache.org/jira/browse/HIVE-28934
> Project: Hive
> Issue Type: Bug
> Components: Query Planning
> Affects Versions: 4.0.0
> Reporter: Vlad Rozov
> Assignee: Vlad Rozov
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.1.0
>
>
> Using {{Hive.get().getConf()}} to get {{HiveConf}} leads to Hive
> instantiation with default configuration.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)