Skip to content

[Bug] select with round function leads to BE crash #33895

@panyanye

Description

@panyanye

Search before asking

  • I had searched in the issues and found no similar issues.

Version

branch-2.0 (doris-2.0.7-dc065ead16)

What's Wrong?

SELECT SQL with round funcrion leads to BE crash, because of NullPointerException.

The crash stack as follows:
image

It looks like in file typeid_cast.h the function " To typeid_cast(From* from) " return null point.

What You Expected?

be work normal not crash

How to Reproduce?

create table test(big_key bigint)
DISTRIBUTED BY HASH(big_key) BUCKETS 1 PROPERTIES ("replication_num" = "1");

select 1 from test e1
having truncate(100,2)<-2308.57
and cast(round(round(465.56,min(-5.987)),2) as DECIMAL) in (
select cast(truncate(round(8990.65-4556.2354,2.4652),2)as DECIMAL)
from test r2);

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions