Files
openGauss-server/src/test/regress/sql/tpch_disablevec06.sql
2020-06-30 17:38:27 +08:00

25 lines
616 B
SQL

set current_schema=vector_engine;
set enable_nestloop=off;
set enable_vector_engine=off;
explain (costs off) select
sum(l_extendedprice * l_discount) as revenue
from
lineitem
where
l_shipdate >= '1994-01-01'::date
and l_shipdate < '1994-01-01'::date + interval '1 year'
and l_discount >= 0.06 - 0.01
and l_discount <= 0.06 + 0.01
and l_quantity < 24;
select
sum(l_extendedprice * l_discount) as revenue
from
lineitem
where
l_shipdate >= '1994-01-01'::date
and l_shipdate < '1994-01-01'::date + interval '1 year'
and l_discount >= 0.06 - 0.01
and l_discount <= 0.06 + 0.01
and l_quantity < 24;