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

[GitHub] [doris] liaoxin01 opened a new issue, #20409: [Bug] wrong result using value predicate when has sequence column

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

   ### 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
   
   master and branch-1.2-lts
   
   ### What's Wrong?
   
   CREATE TABLE `test_uniq_value_predicate` (
     `k` int(11) NULL,
     `int_value` int(11) NULL,
     `char_value` char(10) NULL,
     `date_value` date NULL
   ) ENGINE=OLAP
   UNIQUE KEY(`k`)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(`k`) BUCKETS 1
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "in_memory" = "false",
   "storage_format" = "V2",
   "function_column.sequence_col" = "int_value",
   "disable_auto_compaction" = "false"
   );
   
   insert into test_uniq_value_predicate values(0, 2, 'test int', '2000-02-02');
   insert into test_uniq_value_predicate values(0, 1, 'test char', '2000-01-01');
   
   select * from test_uniq_value_predicate;
   +------+-----------+------------+------------+
   | k    | int_value | char_value | date_value |
   +------+-----------+------------+------------+
   |    0 |         2 | test int   | 2000-02-02 |
   +------+-----------+------------+------------+
   
    select * from test_uniq_value_predicate where k=0 && int_value=2;
   +------+-----------+------------+------------+
   | k    | int_value | char_value | date_value |
   +------+-----------+------------+------------+
   |    0 |         2 | test int   | 2000-02-02 |
   +------+-----------+------------+------------+
   
   select * from test_uniq_value_predicate where k=0 && int_value=1;
   +------+-----------+------------+------------+
   | k    | int_value | char_value | date_value |
   +------+-----------+------------+------------+
   |    0 |         1 | test char  | 2000-01-01 |
   +------+-----------+------------+------------+
   
   ### What You Expected?
   
   empty result when int_value=1
   
   ### 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-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] yiguolei closed issue #20409: [Bug] wrong result using value predicate when has sequence column

Posted by "yiguolei (via GitHub)" <gi...@apache.org>.
yiguolei closed issue #20409: [Bug] wrong result using value predicate when has sequence column
URL: https://github.com/apache/doris/issues/20409


-- 
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