Skip to content

Commit a077390

Browse files
authored
[OLAP Pushdown] Do not create a temp string (#20787)
1 parent d332eed commit a077390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/core/kqp/opt/physical/kqp_opt_phy_olap_filter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ namespace {
316316

317317
//Workarownd for #19125
318318
NYql::NNodes::TCoUtf8 RemoveJsonPathUnnecessaryQuote(const NYql::NNodes::TCoUtf8& node, TExprContext& ctx) {
319-
const std::string_view& path = node.Literal().StringValue();
319+
const std::string_view& path = node.Literal();
320320
if (UTF8Detect(path) == ASCII && path.starts_with("$.\"") && path.substr(3).ends_with("\"")) {
321321
const auto& nakedPath = path.substr(3, path.length()-4);
322322
for (auto c: nakedPath) {

0 commit comments

Comments
 (0)