BiteTheDDDDt opened a new issue #8580:
URL: https://github.com/apache/incubator-doris/issues/8580


   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Version
   
   master
   
   ### What's Wrong?
   
   1. `BloomFilterColumnPredicate` will core dump on `evaluate`, it is because 
of `get_predicate_column_ptr` return column not adapt 
`PrimitiveTypeTraits<type>::CppType`.
   2. `SegementIterator` have double copy when `_short_cir_pred_column_ids` 
have same elements with `_vec_pred_column_ids`, it will lead some dcheck fail 
and performance loss.
   
   Here is case:
   ```sql
   CREATE TABLE `test` (
     `k1` tinyint(4) NULL COMMENT "",
     `k2` smallint(6) NULL COMMENT "",
     `k3` int(11) NULL COMMENT "",
     `k4` bigint(20) NULL COMMENT "",
     `k5` decimal(9, 3) NULL COMMENT "",
     `k6` char(5) NULL COMMENT "",
     `k10` date NULL COMMENT "",
     `k11` datetime NULL COMMENT "",
     `k7` varchar(20) NULL COMMENT "",
     `k8` double MAX NULL COMMENT "",
     `k9` float SUM NULL COMMENT ""
   ) ENGINE=OLAP
   AGGREGATE KEY(`k1`, `k2`, `k3`, `k4`, `k5`, `k6`, `k10`, `k11`, `k7`)
   COMMENT "OLAP"
   PARTITION BY RANGE(`k1`)
   (PARTITION p1 VALUES [("-128"), ("-64")),
   PARTITION p2 VALUES [("-64"), ("0")),
   PARTITION p3 VALUES [("0"), ("64")),
   PARTITION p4 VALUES [("64"), (MAXVALUE)))
   DISTRIBUTED BY HASH(`k1`) BUCKETS 5
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "in_memory" = "false",
   "storage_format" = "V2"
   );
   CREATE TABLE `baseall` (
     `k1` tinyint(4) NULL COMMENT "",
     `k2` smallint(6) NULL COMMENT "",
     `k3` int(11) NULL COMMENT "",
     `k4` bigint(20) NULL COMMENT "",
     `k5` decimal(9, 3) NULL COMMENT "",
     `k6` char(5) NULL COMMENT "",
     `k10` date NULL COMMENT "",
     `k11` datetime NULL COMMENT "",
     `k7` varchar(20) NULL COMMENT "",
     `k8` double NULL COMMENT "",
     `k9` float NULL COMMENT ""
   ) ENGINE=OLAP
   DUPLICATE KEY(`k1`, `k2`, `k3`, `k4`, `k5`, `k6`, `k10`, `k11`, `k7`)
   COMMENT "OLAP"
   DISTRIBUTED BY HASH(`k1`) BUCKETS 5
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "in_memory" = "false",
   "storage_format" = "V2"
   );
   SELECT DISTINCT k5 FROM baseall where k5 in (SELECT k5 FROM test) ORDER BY 
k5;
   ```
   
   ### What You Expected?
   
   fix it
   
   ### 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

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