HappenLee opened a new issue #8690: URL: https://github.com/apache/incubator-doris/issues/8690
### 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? ``` CREATE TABLE test_join ( `k1` int NOT NULL COMMENT "" ) ENGINE=OLAP UNIQUE KEY(`k1`) COMMENT "olap" DISTRIBUTED BY HASH(`k1`) BUCKETS 20 PROPERTIES ( "in_memory" = "false", "storage_format" = "V2", "replication_num" = "1" ); insert into test_join select 1; insert into test_join select 2; select t1.k1,t2.k1 from test_join t1 left join (select k1 from test_join group by k1) t2 on t1.k1=t2.k1; ``` Failed DCHECK: ``` To assert_cast(From&& from) { #ifndef NDEBUG try { if constexpr (std::is_pointer_v<To>) { if (typeid(*from) == typeid(std::remove_pointer_t<To>)) return static_cast<To>(from); } else { if (typeid(from) == typeid(To)) return static_cast<To>(from); } } catch (const std::exception& e) { LOG(FATAL) << "assert cast err:" << e.what(); } LOG(FATAL) << fmt::format("Bad cast from type:{} to {}", demangle(typeid(from).name()), demangle(typeid(To).name())); __builtin_unreachable(); #else return static_cast<To>(from); #endif ``` ### What You Expected? do not coredump ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
