aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/apache/arrow/patches/support-modern-re2.patch
blob: 38de4851da3193f10cf3bd9d8699df113fcd46bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- contrib/libs/apache/arrow/cpp/src/arrow/compute/kernels/scalar_string.cc	(index)
+++ contrib/libs/apache/arrow/cpp/src/arrow/compute/kernels/scalar_string.cc	(working tree)
@@ -2725,7 +2725,7 @@ struct ExtractRegex : public ExtractRegexBase {
         result->value.reserve(group_count);
         for (int i = 0; i < group_count; i++) {
           result->value.push_back(
-              std::make_shared<ScalarType>(found_values[i].as_string()));
+              std::make_shared<ScalarType>(std::string{found_values[i]}));
         }
         result->is_valid = true;
       } else {