diff --git a/presto-benchto-benchmarks/src/main/resources/benchmarks/presto/distributed_sort.yaml b/presto-benchto-benchmarks/src/main/resources/benchmarks/presto/distributed_sort.yaml new file mode 100644 index 000000000000..35d36fdff45e --- /dev/null +++ b/presto-benchto-benchmarks/src/main/resources/benchmarks/presto/distributed_sort.yaml @@ -0,0 +1,16 @@ +datasource: presto +query-names: presto/distributed_sort/${query}.sql +runs: 2 +prewarm-runs: 1 +before-execution: sleep-4s, presto/distributed_sort/session_set_distributed_sort_flag.sql +frequency: 7 +database: hive +tpch_100: tpch_sf100_orc +tpch_300: tpch_sf300_orc +tpch_1000: tpch_sf1000_orc +tpch_3000: tpch_sf3000_orc +variables: + 1: + query: sort_query_6_cols, sort_query_1_col + schema: ${tpch_100}, ${tpch_300}, ${tpch_1000}, ${tpch_3000} + distributed_sort: true, false diff --git a/presto-benchto-benchmarks/src/main/resources/sql/presto/distributed_sort/session_set_distributed_sort_flag.sql b/presto-benchto-benchmarks/src/main/resources/sql/presto/distributed_sort/session_set_distributed_sort_flag.sql new file mode 100644 index 000000000000..a4cc3b583287 --- /dev/null +++ b/presto-benchto-benchmarks/src/main/resources/sql/presto/distributed_sort/session_set_distributed_sort_flag.sql @@ -0,0 +1 @@ +SET SESSION distributed_sort='${distributed_sort}'; diff --git a/presto-benchto-benchmarks/src/main/resources/sql/presto/distributed_sort/sort_query_1_col.sql b/presto-benchto-benchmarks/src/main/resources/sql/presto/distributed_sort/sort_query_1_col.sql new file mode 100644 index 000000000000..071397a84852 --- /dev/null +++ b/presto-benchto-benchmarks/src/main/resources/sql/presto/distributed_sort/sort_query_1_col.sql @@ -0,0 +1,6 @@ +SELECT + count(orderkey) +FROM ( + SELECT * + FROM ${database}.${schema}.lineitem + ORDER BY orderkey) diff --git a/presto-benchto-benchmarks/src/main/resources/sql/presto/distributed_sort/sort_query_6_cols.sql b/presto-benchto-benchmarks/src/main/resources/sql/presto/distributed_sort/sort_query_6_cols.sql new file mode 100644 index 000000000000..252e5e01aec0 --- /dev/null +++ b/presto-benchto-benchmarks/src/main/resources/sql/presto/distributed_sort/sort_query_6_cols.sql @@ -0,0 +1,11 @@ +SELECT + count(orderkey), + count(partkey), + count(suppkey), + count(linenumber), + count(quantity), + count(extendedprice) +FROM ( + SELECT * + FROM ${database}.${schema}.lineitem + ORDER BY orderkey)