Skip to content

[Bug]: bvt decimal div overflow error #5883

Closed

Description

@XuPeng-SH

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):
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

from 1 for 2) as cntrycode,
c_acctbal
from
customer
where
substring(c_phone from 1 for 2) in
('10', '11', '26', '22', '19', '20', '27')
and c_acctbal > (
select
avg(c_acctbal)
from
customer
where
c_acctbal > 0.00
and substring(c_phone from 1 for 2) in
('10', '11', '26', '22', '19', '20', '27')
)
and not exists (
select
*
from
orders
where
o_custkey = c_custkey
)
) as custsale
group by
cntrycode
order by
cntrycode
;
[EXPECT RESULT]:
cntrycode numcust totacctbal
11 4 29942.58
19 2 17120.35
20 1 9091.82
26 1 7354.23
[ACTUAL RESULT]:
data out of range: data type decimal128, decimal div overflow

Expected Behavior

No response

Steps to Reproduce

No response

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions