You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by as...@apache.org on 2022/01/26 00:19:59 UTC

[impala] 01/02: IMPALA-11062: "now_string" option not working properly

This is an automated email from the ASF dual-hosted git repository.

asherman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git

commit 2e916968992321bf013bc229c89b070d47bb33fa
Author: Steve Carlin <sc...@cloudera.com>
AuthorDate: Sat Dec 18 07:18:48 2021 -0800

    IMPALA-11062: "now_string" option not working properly
    
    The "now_string" option was not working when queries are
    being sent through the "ExecutePlannedStatement" API. The
    string needed to be copied over to the TQueryCtx object
    used in RuntimeState.
    
    Change-Id: I977b3a53553aaa40f8d82e7b5b6883b1a6a23065
    Reviewed-on: http://gerrit.cloudera.org:8080/18108
    Tested-by: Impala Public Jenkins <im...@cloudera.com>
    Reviewed-by: Aman Sinha <am...@cloudera.com>
---
 be/src/runtime/query-driver.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/be/src/runtime/query-driver.cc b/be/src/runtime/query-driver.cc
index c5d979c..3200ad7 100644
--- a/be/src/runtime/query-driver.cc
+++ b/be/src/runtime/query-driver.cc
@@ -89,6 +89,8 @@ Status QueryDriver::SetExternalPlan(
   // Update local_time_zone in the external request
   exec_request_->query_exec_request.query_ctx.__set_local_time_zone(
       query_ctx.local_time_zone);
+  exec_request_->query_exec_request.query_ctx.__set_now_string(
+      query_ctx.now_string);
   return Status::OK();
 }