summaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/json2
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/json2
parentc439c8555866bacd34054603e87433b69becd631 (diff)
YQL-20241: Use ASCIIZ strings for UdfTerminate (essential udfs)
commit_hash:1a11133ec66e71b6c798178453a5ab43cdc6761c
Diffstat (limited to 'yql/essentials/udfs/common/json2')
-rw-r--r--yql/essentials/udfs/common/json2/as_json_node.h2
-rw-r--r--yql/essentials/udfs/common/json2/compile_path.h2
-rw-r--r--yql/essentials/udfs/common/json2/parse.h2
-rw-r--r--yql/essentials/udfs/common/json2/serialize.h2
-rw-r--r--yql/essentials/udfs/common/json2/sql_exists.h2
-rw-r--r--yql/essentials/udfs/common/json2/sql_query.h2
-rw-r--r--yql/essentials/udfs/common/json2/sql_value.h2
7 files changed, 7 insertions, 7 deletions
diff --git a/yql/essentials/udfs/common/json2/as_json_node.h b/yql/essentials/udfs/common/json2/as_json_node.h
index 12937f4351a..6060f03bea8 100644
--- a/yql/essentials/udfs/common/json2/as_json_node.h
+++ b/yql/essentials/udfs/common/json2/as_json_node.h
@@ -63,7 +63,7 @@ namespace NJson2Udf {
}
return Interpret(args[0], valueBuilder);
} catch (const std::exception& e) {
- UdfTerminate((TStringBuilder() << Pos_ << " " << e.what()).data());
+ UdfTerminate((TStringBuilder() << Pos_ << " " << e.what()).c_str());
}
}
diff --git a/yql/essentials/udfs/common/json2/compile_path.h b/yql/essentials/udfs/common/json2/compile_path.h
index 3d7eba01cb5..220bd4fbaf6 100644
--- a/yql/essentials/udfs/common/json2/compile_path.h
+++ b/yql/essentials/udfs/common/json2/compile_path.h
@@ -60,7 +60,7 @@ namespace NJson2Udf {
return TUnboxedValuePod(new TJsonPathResource(jsonPath));
} catch (const std::exception& e) {
- UdfTerminate((TStringBuilder() << Pos_ << " " << e.what()).data());
+ UdfTerminate((TStringBuilder() << Pos_ << " " << e.what()).c_str());
}
}
diff --git a/yql/essentials/udfs/common/json2/parse.h b/yql/essentials/udfs/common/json2/parse.h
index 0020c164c2b..6df4bce9b0a 100644
--- a/yql/essentials/udfs/common/json2/parse.h
+++ b/yql/essentials/udfs/common/json2/parse.h
@@ -56,7 +56,7 @@ namespace NJson2Udf {
const auto json = args[0].AsStringRef();
return TryParseJsonDom(json, valueBuilder);
} catch (const std::exception& e) {
- UdfTerminate((TStringBuilder() << Pos_ << " " << e.what()).data());
+ UdfTerminate((TStringBuilder() << Pos_ << " " << e.what()).c_str());
}
}
diff --git a/yql/essentials/udfs/common/json2/serialize.h b/yql/essentials/udfs/common/json2/serialize.h
index a7077cb6e6d..cda95e77f5a 100644
--- a/yql/essentials/udfs/common/json2/serialize.h
+++ b/yql/essentials/udfs/common/json2/serialize.h
@@ -67,7 +67,7 @@ namespace NJson2Udf {
return valueBuilder->NewString(TStringBuf(binaryJson.Data(), binaryJson.Size()));
}
} catch (const std::exception& e) {
- UdfTerminate((TStringBuilder() << Pos_ << " " << e.what()).data());
+ UdfTerminate((TStringBuilder() << Pos_ << " " << e.what()).c_str());
}
}
diff --git a/yql/essentials/udfs/common/json2/sql_exists.h b/yql/essentials/udfs/common/json2/sql_exists.h
index 8a049b49d42..cb89f20ec21 100644
--- a/yql/essentials/udfs/common/json2/sql_exists.h
+++ b/yql/essentials/udfs/common/json2/sql_exists.h
@@ -105,7 +105,7 @@ namespace NJson2Udf {
return TUnboxedValuePod(!result.GetNodes().empty());
} catch (const std::exception& e) {
- UdfTerminate((TStringBuilder() << Pos_ << " " << e.what()).data());
+ UdfTerminate((TStringBuilder() << Pos_ << " " << e.what()).c_str());
}
}
diff --git a/yql/essentials/udfs/common/json2/sql_query.h b/yql/essentials/udfs/common/json2/sql_query.h
index cb3bafd3b0b..1c2d610f923 100644
--- a/yql/essentials/udfs/common/json2/sql_query.h
+++ b/yql/essentials/udfs/common/json2/sql_query.h
@@ -144,7 +144,7 @@ namespace NJson2Udf {
return nodes[0].ConvertToUnboxedValue(valueBuilder);
} catch (const std::exception& e) {
- UdfTerminate((TStringBuilder() << Pos_ << " " << e.what()).data());
+ UdfTerminate((TStringBuilder() << Pos_ << " " << e.what()).c_str());
}
}
diff --git a/yql/essentials/udfs/common/json2/sql_value.h b/yql/essentials/udfs/common/json2/sql_value.h
index 8d3318a8c54..53b451c6275 100644
--- a/yql/essentials/udfs/common/json2/sql_value.h
+++ b/yql/essentials/udfs/common/json2/sql_value.h
@@ -231,7 +231,7 @@ namespace NJson2Udf {
return BuildSuccessfulResult(valueBuilder, std::move(convertedValue));
} catch (const std::exception& e) {
- UdfTerminate((TStringBuilder() << Pos_ << " " << e.what()).data());
+ UdfTerminate((TStringBuilder() << Pos_ << " " << e.what()).c_str());
}
}