HappenLee commented on code in PR #57329:
URL: https://github.com/apache/doris/pull/57329#discussion_r2464393927


##########
be/src/common/config.cpp:
##########
@@ -1082,6 +1084,29 @@ DEFINE_mInt32(segcompaction_wait_for_dbm_task_timeout_s, 
"3600"); // 1h
 // enable java udf and jdbc scannode
 DEFINE_Bool(enable_java_support, "true");
 
+// enable python udf
+DEFINE_Bool(enable_python_udf_support, "true");
+// python env mode, options: conda, venv
+DEFINE_String(python_env_mode, "");
+DEFINE_Validator(python_env_mode, [](const std::string& config) -> bool {
+    std::string lower_config = to_lower(config);
+    std::string_view trimmed_config = trim(lower_config);
+    if (trimmed_config.empty()) return true;
+    return (trimmed_config == "conda" || trimmed_config == "venv");
+});
+// root path of conda runtime, python_env_mode should be conda
+DEFINE_String(python_conda_root_path, "");
+// root path of venv runtime, python_env_mode should be venv
+DEFINE_String(python_venv_root_path, "${DORIS_HOME}/lib/udf/python");
+// python interpreter paths, e.g. /usr/bin/python3.7:/usr/bin/python3.6
+DEFINE_String(python_interpreter_paths, "");

Review Comment:
   if use venv env,name should be `python_venv_interpreter_paths`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to