Skip to content

Commit

Permalink
HIVE-28129 Execute statement doesnot report the correct query string …
Browse files Browse the repository at this point in the history
…information (apache#5155) (Ramesh Kumar reviewed by Stamatis Zampetakis)
  • Loading branch information
ramesh0201 authored and dengzhhu653 committed Sep 25, 2024
1 parent 5120f12 commit 2d1405e
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 114 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,10 @@ public void analyzeInternal(ASTNode root) throws SemanticException {

// reset config
String queryId = this.conf.getVar(HiveConf.ConfVars.HIVE_QUERY_ID);
String queryString = this.conf.getVar(HiveConf.ConfVars.HIVE_QUERY_STRING);
this.conf.syncFromConf(cachedPlan.getQueryState().getConf());
this.conf.setVar(HiveConf.ConfVars.HIVE_QUERY_ID, queryId);
this.conf.setVar(HiveConf.ConfVars.HIVE_QUERY_STRING, queryString);

// set rest of the params
this.inputs = cachedPlan.getInputs();
Expand Down
Loading

0 comments on commit 2d1405e

Please sign in to comment.