From 720fb39566cf2f5db091c90f4a0bda592f8fc9a4 Mon Sep 17 00:00:00 2001 From: Andrew Duffy Date: Tue, 30 Jul 2024 10:49:36 -0400 Subject: [PATCH] compare --- bench-vortex/src/bin/tpch_benchmark.rs | 9 +++------ bench-vortex/tpch/q7.sql | 2 +- bench-vortex/tpch/q8.sql | 2 +- bench-vortex/tpch/q9.sql | 2 +- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/bench-vortex/src/bin/tpch_benchmark.rs b/bench-vortex/src/bin/tpch_benchmark.rs index e43c8dfd41..13cc5475f2 100644 --- a/bench-vortex/src/bin/tpch_benchmark.rs +++ b/bench-vortex/src/bin/tpch_benchmark.rs @@ -21,13 +21,10 @@ async fn main() { Format::Vortex { disable_pushdown: false, }, + Format::Vortex { + disable_pushdown: true, + }, // Format::Parquet, - // Format::Vortex { - // disable_pushdown: false, - // }, - // Format::Vortex { - // disable_pushdown: true, - // }, ]; // Load datasets diff --git a/bench-vortex/tpch/q7.sql b/bench-vortex/tpch/q7.sql index 2ac76a462e..512e5be55a 100644 --- a/bench-vortex/tpch/q7.sql +++ b/bench-vortex/tpch/q7.sql @@ -8,7 +8,7 @@ from select n1.n_name as supp_nation, n2.n_name as cust_nation, - extract(year from CAST(l_shipdate AS date)) as l_year, + extract(year from l_shipdate) as l_year, l_extendedprice * (1 - l_discount) as volume from supplier, diff --git a/bench-vortex/tpch/q8.sql b/bench-vortex/tpch/q8.sql index cd3acb48b2..6ddb2a6747 100644 --- a/bench-vortex/tpch/q8.sql +++ b/bench-vortex/tpch/q8.sql @@ -7,7 +7,7 @@ select from ( select - extract(year from CAST(o_orderdate AS date)) as o_year, + extract(year from o_orderdate) as o_year, l_extendedprice * (1 - l_discount) as volume, n2.n_name as nation from diff --git a/bench-vortex/tpch/q9.sql b/bench-vortex/tpch/q9.sql index 02724762d3..587bbc8a20 100644 --- a/bench-vortex/tpch/q9.sql +++ b/bench-vortex/tpch/q9.sql @@ -6,7 +6,7 @@ from ( select n_name as nation, - extract(year from CAST(o_orderdate AS DATE)) as o_year, + extract(year from o_orderdate) as o_year, l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity as amount from part,