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;