summaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/python/bindings/py_callable.cpp
diff options
context:
space:
mode:
authorYDBot <[email protected]>2025-07-26 00:52:12 +0000
committerYDBot <[email protected]>2025-07-26 00:52:12 +0000
commitc641bf9f3666236b4c2e81273c2c5563c54e4df4 (patch)
tree1ff5c8e694c9a78ee0e2ad3b0ff5bb5b03818bc7 /yql/essentials/udfs/common/python/bindings/py_callable.cpp
parentff32dad4c0a4ac13a90dfb44fdd19a5454cfe13e (diff)
parent8261eb9dc960f33f6454ac242c06ee8c8bcef5b0 (diff)
Sync branches 250726-0050
Diffstat (limited to 'yql/essentials/udfs/common/python/bindings/py_callable.cpp')
-rw-r--r--yql/essentials/udfs/common/python/bindings/py_callable.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/yql/essentials/udfs/common/python/bindings/py_callable.cpp b/yql/essentials/udfs/common/python/bindings/py_callable.cpp
index c60403bdca2..e9b25606ed0 100644
--- a/yql/essentials/udfs/common/python/bindings/py_callable.cpp
+++ b/yql/essentials/udfs/common/python/bindings/py_callable.cpp
@@ -188,7 +188,7 @@ private:
TPyObjectPtr resultObj =
PyObject_CallObject(Function_.Get(), pyArgs.Get());
if (!resultObj) {
- UdfTerminate((TStringBuilder() << CastCtx_->PyCtx->Pos << "Failed to execute:\n" << GetLastErrorAsString()).data());
+ UdfTerminate((TStringBuilder() << CastCtx_->PyCtx->Pos << "Failed to execute:\n" << GetLastErrorAsString()).c_str());
}
auto returnType = Inspector_.GetReturnType();
@@ -198,7 +198,7 @@ private:
return FromPyObject(CastCtx_, returnType, resultObj.Get());
} catch (const yexception& e) {
- UdfTerminate((TStringBuilder() << CastCtx_->PyCtx->Pos << "Failed to cast arguments or result\n" << e.what()).data());
+ UdfTerminate((TStringBuilder() << CastCtx_->PyCtx->Pos << "Failed to cast arguments or result\n" << e.what()).c_str());
}
}