This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 1b5fa615aa7 [chore](url) delete useless code for function url (#63250)
1b5fa615aa7 is described below

commit 1b5fa615aa737d973a0e14874e69e0e6f93d65ae
Author: TengJianPing <[email protected]>
AuthorDate: Fri May 22 15:46:50 2026 +0800

    [chore](url) delete useless code for function url (#63250)
    
    ### What problem does this PR solve?
    
    Issue Number: close #xxx
    
    Related PR: #xxx
    
    Problem Summary:
    
    ### Release note
    
    None
    
    ### Check List (For Author)
    
    - Test <!-- At least one of them must be included. -->
        - [ ] Regression test
        - [ ] Unit Test
        - [ ] Manual test (add detailed scripts or steps below)
        - [ ] No need to test or manual test. Explain why:
    - [ ] This is a refactor/code format and no logic has been changed.
            - [ ] Previous test can cover this change.
            - [ ] No code files have been changed.
            - [ ] Other reason <!-- Add your reason?  -->
    
    - Behavior changed:
        - [ ] No.
        - [ ] Yes. <!-- Explain the behavior change -->
    
    - Does this need documentation?
        - [ ] No.
    - [ ] Yes. <!-- Add document PR link here. eg:
    https://github.com/apache/doris-website/pull/1214 -->
    
    ### Check List (For Reviewer who merge this PR)
    
    - [ ] Confirm the release note
    - [ ] Confirm test cases
    - [ ] Confirm document
    - [ ] Add branch pick label <!-- Add branch pick label that this PR
    should merge into -->
---
 be/src/exprs/function/url/functions_url.h | 44 -------------------------------
 1 file changed, 44 deletions(-)

diff --git a/be/src/exprs/function/url/functions_url.h 
b/be/src/exprs/function/url/functions_url.h
index b850efca4a6..6506ae0e398 100644
--- a/be/src/exprs/function/url/functions_url.h
+++ b/be/src/exprs/function/url/functions_url.h
@@ -106,48 +106,4 @@ struct ExtractSubstringImpl {
     }
 };
 
-/** Delete part of string using the Extractor.
-  */
-template <typename Extractor>
-struct CutSubstringImpl {
-    static void vector(const ColumnString::Chars& data, const 
ColumnString::Offsets& offsets,
-                       ColumnString::Chars& res_data, ColumnString::Offsets& 
res_offsets) {
-        res_data.reserve(data.size());
-        size_t size = offsets.size();
-        res_offsets.resize(size);
-
-        size_t prev_offset = 0;
-        size_t res_offset = 0;
-
-        /// Matched part.
-        Pos start;
-        size_t length;
-
-        for (size_t i = 0; i < size; ++i) {
-            const char* current = reinterpret_cast<const 
char*>(&data[prev_offset]);
-            Extractor::execute(current, offsets[i] - prev_offset, start, 
length);
-            size_t start_index = start - reinterpret_cast<const 
char*>(data.data());
-
-            res_data.resize(res_data.size() + offsets[i] - prev_offset - 
length);
-            memcpy_small_allow_read_write_overflow15(&res_data[res_offset], 
current,
-                                                     start - current);
-            memcpy_small_allow_read_write_overflow15(&res_data[res_offset + 
start - current],
-                                                     start + length,
-                                                     offsets[i] - start_index 
- length);
-            res_offset += offsets[i] - prev_offset - length;
-
-            res_offsets[i] = res_offset;
-            prev_offset = offsets[i];
-        }
-    }
-
-    static void constant(const std::string& data, std::string& res_data) {
-        Pos start;
-        size_t length;
-        Extractor::execute(data.data(), data.size(), start, length);
-        res_data.reserve(data.size() - length);
-        res_data.append(data.data(), start);
-        res_data.append(start + length, data.data() + data.size());
-    }
-};
 } // namespace doris


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to