From 8845e6570bec0a0d91444ce99b4130204fa26c29 Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Tue, 8 Aug 2023 13:36:22 -0700 Subject: [PATCH] Remove additional cast from TPCH q8 --- benchmarks/queries/q8.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmarks/queries/q8.sql b/benchmarks/queries/q8.sql index 4f34dca6a045..6ddb2a674758 100644 --- a/benchmarks/queries/q8.sql +++ b/benchmarks/queries/q8.sql @@ -1,9 +1,9 @@ select o_year, - cast(cast(sum(case - when nation = 'BRAZIL' then volume - else 0 - end) as decimal(12,2)) / cast(sum(volume) as decimal(12,2)) as decimal(15,2)) as mkt_share + sum(case + when nation = 'BRAZIL' then volume + else 0 + end) / sum(volume) as mkt_share from ( select