Skip to content

Commit a76c3d3

Browse files
authored
Remove additional cast from TPCH q8 (#7233)
1 parent 0c9b614 commit a76c3d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

benchmarks/queries/q8.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
select
22
o_year,
3-
cast(cast(sum(case
4-
when nation = 'BRAZIL' then volume
5-
else 0
6-
end) as decimal(12,2)) / cast(sum(volume) as decimal(12,2)) as decimal(15,2)) as mkt_share
3+
sum(case
4+
when nation = 'BRAZIL' then volume
5+
else 0
6+
end) / sum(volume) as mkt_share
77
from
88
(
99
select

0 commit comments

Comments
 (0)