You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "xiaokang (via GitHub)" <gi...@apache.org> on 2023/04/25 07:18:50 UTC

[GitHub] [doris] xiaokang opened a new issue, #19051: [Bug] multi_match_any get wrong result

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

   ### 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
   
   1.2.3
   
   ### What's Wrong?
   
   result is wrong, which is in the reproducing steps.
   
   ### What You Expected?
   
   right result
   
   ### How to Reproduce?
   
   
   ```
   CREATE TABLE `crm_user_baby4` (
     `user_id` bigint(20) NOT NULL COMMENT '用户ID',
     `nick_name` varchar(100) NULL COMMENT '昵称',
     `sex` tinyint(4) NULL COMMENT '性别',
     `birthday` datev2 NULL COMMENT '生日',
     `grade` tinyint(4) NULL COMMENT '年纪',
     `age` float NULL COMMENT '年龄',
     `interest` varchar(200) NULL COMMENT '兴趣',
     `personality` smallint(6) NULL COMMENT '性格',
     `update_time` datetimev2(0) NULL COMMENT '数据更新时间'
   ) ENGINE=OLAP
   UNIQUE KEY(`user_id`)
   COMMENT '用户宝贝信息'
   DISTRIBUTED BY HASH(`user_id`) BUCKETS 16
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 3",
   "colocate_with" = "__global__user_group",
   "in_memory" = "true",
   "storage_format" = "V2",
   "enable_unique_key_merge_on_write" = "true",
   "disable_auto_compaction" = "false"
   );
   
   INSERT INTO crm_user_baby4 (user_id,nick_name,sex,birthday,grade,age,interest,personality,update_time) VALUES
     (2,'',1,'2020-01-01',1,1.0,'3,4,5',1,'2021-01-01 00:00:00'),
     (1,'',1,'2020-01-01',1,1.0,'1,2,3,4,5',1,'2021-01-01 00:00:00'),
     (3,'',1,'2020-01-01',1,1.0,'7,9',1,'2021-01-01 00:00:00');
   
   -- wrong result
   mysql>  select interest, multi_match_any(interest,['1']) from crm_user_baby4;
   +-----------+-----------------------------------------+
   | interest  | multi_match_any(`interest`, ARRAY('1')) |
   +-----------+-----------------------------------------+
   | 1,2,3,4,5 |                                     -48 |
   | 3,4,5     |                                     -48 |
   | 7,9       |                                     -48 |
   +-----------+-----------------------------------------+
   
   
   -- right result
   mysql> select  multi_match_any('1,2,3,4,5',['1']) ;
   +------------------------------------------+
   | multi_match_any('1,2,3,4,5', ARRAY('1')) |
   +------------------------------------------+
   |                                        1 |
   +------------------------------------------+
   ```
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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-unsubscribe@doris.apache.org.apache.org

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


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


[GitHub] [doris] gitccl commented on issue #19051: [Bug] multi_match_any get wrong result

Posted by "gitccl (via GitHub)" <gi...@apache.org>.
gitccl commented on issue #19051:
URL: https://github.com/apache/doris/issues/19051#issuecomment-1543402241

   > 
   
   This issue has been fixed by #19104 and #19498.


-- 
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-unsubscribe@doris.apache.org

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


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


[GitHub] [doris] gitccl commented on issue #19051: [Bug] multi_match_any get wrong result

Posted by "gitccl (via GitHub)" <gi...@apache.org>.
gitccl commented on issue #19051:
URL: https://github.com/apache/doris/issues/19051#issuecomment-1521506612

   I'd like to do this task.


-- 
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-unsubscribe@doris.apache.org

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


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


[GitHub] [doris] xiaokang commented on issue #19051: [Bug] multi_match_any get wrong result

Posted by "xiaokang (via GitHub)" <gi...@apache.org>.
xiaokang commented on issue #19051:
URL: https://github.com/apache/doris/issues/19051#issuecomment-1543344373

   @gitccl Have you submit a PR to fix this issue? 


-- 
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-unsubscribe@doris.apache.org

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


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