Repository navigation
Closed
Labels
Milestone
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Environment
- Version or commit-id (e.g. v0.1.0 or 8b23a93):e1319c52cf87b17a98008ae0dda79b72237d9ed1
- Hardware parameters:Mac M1 ARM 16GB Memory
- OS type:OSX
- Others:Actual Behavior
select substring(c,2,-1),substr(vc,3,-1) from t1 where id = 4 ;
+---------------------+-------------------+
| substring(c, 2, -1) | substr(vc, 3, -1) |
+---------------------+-------------------+
| nonymou | nnabuythisbook |
+---------------------+-------------------+
Expected Behavior
select substring(c,2,-1),substr(vc,3,-1) from t1 where id = 4 ;
+-------------------+-----------------+
| substring(c,2,-1) | substr(vc,3,-1) |
+-------------------+-----------------+
| | |
+-------------------+-----------------+
Steps to Reproduce
drop table if exists t1;
create table t1 ( id int, c char(10),vc varchar(20));
insert into t1 values (1,'Daffy','Aducklife');
insert into t1 values (1,'Daffy','Aducklife');
insert into t1 values (2,'Bugs','Arabbitlife');
insert into t1 values (3,'Cowboy','Lifeontherange');
insert into t1 values (4,'Anonymous','Wannabuythisbook?');
insert into t1 values (5,'BestSeller','OneHeckuvabook');
insert into t1 values (5,'BestSeller','OneHeckuvabook');
insert into t1 values (6,'EveryoneBu','Thisverybook');
insert into t1 values (7,'SanFran','Itisasanfranlifetyle');
insert into t1 values (8,'BerkAuthor','Cool.Berkly.the.book');
insert into t1 values (9,null,null);
insert into t1 values (10,'','');Additional information
No response
Activity
dengn commentedon Jun 30, 2022
@jianwan0214 #3166 tag has not been completely removed.
This issue is not finished.
Check on
matrixone/test/cases/function/func_string_substring.test
Line 52 in e98d456
matrixone/test/cases/function/func_substr.sql
Line 31 in e98d456
dengn commentedon Jul 2, 2022
@jianwan0214 #3166 tag still remains....
matrixone/test/cases/function/func_string_substring.test
Line 52 in e7b9648