huangmaoxian opened a new issue, #31676:
URL: https://github.com/apache/doris/issues/31676

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   Version : doris-2.0.3-rc06
   
   ### What's Wrong?
   
   **-- 建表**
   CREATE TABLE `regexp_test` (
     `a` varchar(*) NULL,
     `b` varchar(*) NULL,
     `c` varchar(*) NULL,
     `d` bigint(20) NULL,
     `e` DECIMAL(20, 8) NULL
   ) ENGINE=OLAP
   DUPLICATE KEY(`a`, `b`)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(`a`, `b`) BUCKETS 10
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "is_being_synced" = "false",
   "storage_format" = "V2",
   "light_schema_change" = "true",
   "disable_auto_compaction" = "false",
   "enable_single_replica_compaction" = "false"
   );
   
   **-- 查询报错**
   SELECT 
        a,
        b 
   FROM
        `regexp_test` 
   WHERE
        c REGEXP '(^|)(预计sku)($|)' 
   ORDER BY
        a ASC;
   **-- 报错**
   [CANCELLED][INTERNAL_ERROR]UDF ERROR: hs_compile regex pattern error
   
        0#  
doris::RuntimeState::set_process_status(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&) at 
/root/src/doris-2.0/be/src/common/status.h:354
        1#  doris::FunctionContext::set_error(char const*) at 
/var/local/ldb-toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:187
        2#  doris::vectorized::FunctionLikeBase::hs_pr
        
   
   **-- 查询正常**
   SELECT 
        a,
        b 
   FROM
        `regexp_test` 
   WHERE
        c REGEXP '(^|)(预计sku)($|)';
   
   ### What You Expected?
   
   SELECT 
        a,
        b 
   FROM
        `regexp_test` 
   WHERE
        c REGEXP '(^|)(预计sku)($|)' 
   ORDER BY
        a ASC;
        
   该语句可正常执行
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to