summaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/python/python_udf
diff options
context:
space:
mode:
authorimunkin <[email protected]>2025-07-25 14:36:33 +0300
committerimunkin <[email protected]>2025-07-25 15:25:21 +0300
commit835b6519eb8e218bb0c84d8d7827bf9fbe7893c8 (patch)
tree24c4778644641d8c2be1aa8f1333269d683db984 /yql/essentials/udfs/common/python/python_udf
parentc439c8555866bacd34054603e87433b69becd631 (diff)
YQL-20241: Use ASCIIZ strings for UdfTerminate (essential udfs)
commit_hash:1a11133ec66e71b6c798178453a5ab43cdc6761c
Diffstat (limited to 'yql/essentials/udfs/common/python/python_udf')
-rw-r--r--yql/essentials/udfs/common/python/python_udf/python_function_factory.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/yql/essentials/udfs/common/python/python_udf/python_function_factory.h b/yql/essentials/udfs/common/python/python_udf/python_function_factory.h
index 657fb1f442b..7d96f67a083 100644
--- a/yql/essentials/udfs/common/python/python_udf/python_function_factory.h
+++ b/yql/essentials/udfs/common/python/python_udf/python_function_factory.h
@@ -58,23 +58,23 @@ private:
TPyGilLocker lock;
TPyObjectPtr module = CompileModule(FunctionName_, source);
if (!module) {
- UdfTerminate((TStringBuilder() << Ctx_->Pos << "Failed to compile module: " << GetLastErrorAsString()).data());
+ UdfTerminate((TStringBuilder() << Ctx_->Pos << "Failed to compile module: " << GetLastErrorAsString()).c_str());
}
TPyObjectPtr function(PyObject_GetAttrString(module.Get(), FunctionName_.data()));
if (!function) {
- UdfTerminate((TStringBuilder() << Ctx_->Pos << "Failed to find entry point: " << GetLastErrorAsString()).data());
+ UdfTerminate((TStringBuilder() << Ctx_->Pos << "Failed to find entry point: " << GetLastErrorAsString()).c_str());
}
if (!PyCallable_Check(function.Get())) {
- UdfTerminate((TStringBuilder() << Ctx_->Pos << "Entry point is not a callable").data());
+ UdfTerminate((TStringBuilder() << Ctx_->Pos << "Entry point is not a callable").c_str());
}
try {
SetupCallableSettings(castCtx, function.Get());
} catch (const yexception& e) {
UdfTerminate((TStringBuilder() << Ctx_->Pos << "Failed to setup callable settings: "
- << e.what()).data());
+ << e.what()).c_str());
}
return FromPyCallable(castCtx, FunctionType_, function.Release());
}