Skip to content

Commit

Permalink
Read spark config from session for all sql cases (4paradigm#3651)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobegit3hub authored Dec 1, 2023
1 parent 08b1918 commit d1d2e38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sdk/sql_cluster_router.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2790,9 +2790,9 @@ std::shared_ptr<hybridse::sdk::ResultSet> SQLClusterRouter::ExecuteSQL(
}
} else {
::openmldb::taskmanager::JobInfo job_info;
std::map<std::string, std::string> config;

std::map<std::string, std::string> config = ParseSparkConfigString(GetSparkConfig());
ReadSparkConfFromFile(std::dynamic_pointer_cast<SQLRouterOptions>(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);
Expand Down Expand Up @@ -2837,7 +2837,7 @@ std::shared_ptr<hybridse::sdk::ResultSet> SQLClusterRouter::ExecuteSQL(
} else {
// Load data using Spark
::openmldb::taskmanager::JobInfo job_info;
std::map<std::string, std::string> config;
std::map<std::string, std::string> config = ParseSparkConfigString(GetSparkConfig());
ReadSparkConfFromFile(std::dynamic_pointer_cast<SQLRouterOptions>(options_)->spark_conf_path, &config);

::openmldb::base::Status base_status;
Expand Down

0 comments on commit d1d2e38

Please sign in to comment.