From d1d2e382f0296d01c529c770cef11437f5d297db Mon Sep 17 00:00:00 2001 From: tobe Date: Fri, 1 Dec 2023 15:45:37 +0800 Subject: [PATCH] Read spark config from session for all sql cases (#3651) --- src/sdk/sql_cluster_router.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sdk/sql_cluster_router.cc b/src/sdk/sql_cluster_router.cc index bb4793dfb56..8ef85e62a76 100644 --- a/src/sdk/sql_cluster_router.cc +++ b/src/sdk/sql_cluster_router.cc @@ -2790,9 +2790,9 @@ std::shared_ptr SQLClusterRouter::ExecuteSQL( } } else { ::openmldb::taskmanager::JobInfo job_info; - std::map config; - + std::map config = ParseSparkConfigString(GetSparkConfig()); ReadSparkConfFromFile(std::dynamic_pointer_cast(options_)->spark_conf_path, &config); + auto base_status = ExportOfflineData(sql, config, db, is_sync_job, offline_job_timeout, &job_info); if (base_status.OK()) { return this->GetJobResultSet(job_info.id(), status); @@ -2837,7 +2837,7 @@ std::shared_ptr SQLClusterRouter::ExecuteSQL( } else { // Load data using Spark ::openmldb::taskmanager::JobInfo job_info; - std::map config; + std::map config = ParseSparkConfigString(GetSparkConfig()); ReadSparkConfFromFile(std::dynamic_pointer_cast(options_)->spark_conf_path, &config); ::openmldb::base::Status base_status;