diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG1_index_type_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG1_index_type_impact.yaml new file mode 100644 index 000000000..16c100c0c --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG1_index_type_impact.yaml @@ -0,0 +1,166 @@ +#TEST FOR POSTGRES +#GOAL1 Impact of index type on aggregation +#TESTS: +#Aggregate function count on non indexed column of bigint datatype +#Aggregate function count on pkey column of bigint datatype +#Aggregate function count on secondary indexed column of bigint datatype +type: POSTGRES +driver: org.postgresql.Driver +url: jdbc:postgresql://{{endpoint}}:5432/postgres?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + - CREATE TABLE nonIndexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE Indexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_1(col_bigint_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar10_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar500_id_1); + - CREATE INDEX ON Indexed1M_1(col_float5_1); + cleanup: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + loadRules: + - table: nonIndexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: Indexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG1_count_bigint_non_indexed_column + run: + - name: pg_count_bigint_non_indexed_column + weight: 100 + queries: + - query: select count(col_bigint_id_1) from nonIndexed1M_1 + - workload: AGGRG1_count_bigint_pkey_column + run: + - name: pg_count_bigint_non_indexed_column + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_1 + - workload: AGGRG1_count_bigint_secondary_indexed_column + run: + - name: pg_count_bigint_non_indexed_column + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG2_impact_of_increasing_row.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG2_impact_of_increasing_row.yaml new file mode 100644 index 000000000..2f3b1df76 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG2_impact_of_increasing_row.yaml @@ -0,0 +1,162 @@ +#TEST FOR POSTGRES +#GOAL1 Impact of increasing rows on count aggregate +#TESTS: +#Aggregate function count on 0.1M rows +#Aggregate function count on 1M rows +#Aggregate function count on 10M rows +type: POSTGRES +driver: org.postgresql.Driver +url: jdbc:postgresql://{{endpoint}}:5432/postgres?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + - CREATE TABLE pkeyBigint1L_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint10M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + loadRules: + - table: pkeyBigint1L_ + count: 1 + rows: 100000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 100000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 100000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint10M_ + count: 1 + rows: 10000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 10000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 10000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG2_count_bigint_1L_table_rows + run: + - name: pg_count_bigint_non_indexed_column + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1L_1 + - workload: AGGRG2_count_bigint_1M_table_rows + run: + - name: pg_count_bigint_1M_table_rows + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_1 + - workload: AGGRG2_count_bigint_10M_table_rows + run: + - name: pg_count_bigint_10M_table_rows + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint10M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG3_projection_datatype_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG3_projection_datatype_impact.yaml new file mode 100644 index 000000000..59a010390 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG3_projection_datatype_impact.yaml @@ -0,0 +1,104 @@ +#TEST FOR POSTGRES +#GOAL3 Impact of projection datatype on aggregate count +#TESTS: +#Aggregate function count on all tupples(*) +#Aggregate function count on indexed bigint column +#Aggregate function count on indexed float column +#Aggregate function count on indexed varchar(10) column +#Aggregate function count on indexed varchar(500) column +type: POSTGRES +driver: org.postgresql.Driver +url: jdbc:postgresql://{{endpoint}}:5432/postgres?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS Indexed1M_1; + - CREATE TABLE Indexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_1(col_bigint_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar10_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar500_id_1); + - CREATE INDEX ON Indexed1M_1(col_float5_1); + cleanup: + - DROP TABLE IF EXISTS Indexed1M_1; + loadRules: + - table: Indexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG3_count_on_all_tupples_columns + run: + - name: pg_count_bigint_on_all_tupples_columns + weight: 100 + queries: + - query: select count(*) from Indexed1M_1 + - workload: AGGRG3_count_bigint_on_indexed + run: + - name: pg_count_on_indexed_bigint + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_1 + - workload: AGGRG3_count_on_indexed_float + run: + - name: pg_count_on_indexed_varchar10 + weight: 100 + queries: + - query: select count(col_float5_1) from Indexed1M_1 + - workload: AGGRG3_count_on_indexed_varchar10 + run: + - name: pg_count_on_indexed_varchar10 + weight: 100 + queries: + - query: select count(col_varchar10_id_1) from Indexed1M_1 + - workload: AGGRG3_count_on_indexed_varchar500 + run: + - name: pg_count_on_indexed_varchar500 + weight: 100 + queries: + - query: select count(col_varchar500_id_1) from Indexed1M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG4_impact_of_distinct_on_increasing_row.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG4_impact_of_distinct_on_increasing_row.yaml new file mode 100644 index 000000000..985445c60 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG4_impact_of_distinct_on_increasing_row.yaml @@ -0,0 +1,162 @@ +#TEST FOR POSTGRES +#GOAL4 Impact of increasing rows on distinct aggregate +#TESTS: +#Aggregate function distinct on 0.1M rows +#Aggregate function distinct on 1M rows +#Aggregate function distinct on 10M rows +type: POSTGRES +driver: org.postgresql.Driver +url: jdbc:postgresql://{{endpoint}}:5432/postgres?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + - CREATE TABLE pkeyBigint1L_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint10M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + loadRules: + - table: pkeyBigint1L_ + count: 1 + rows: 100000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 100000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 100000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint10M_ + count: 1 + rows: 10000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 10000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 10000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG4_distinct_bigint_1L_table_rows + run: + - name: pg_distinct_bigint_non_indexed_column + weight: 100 + queries: + - query: select distinct(col_bigint_id_1) from pkeyBigint1L_1 + - workload: AGGRG4_distinct_bigint_1M_table_rows + run: + - name: pg_distinct_bigint_1M_table_rows + weight: 100 + queries: + - query: select distinct(col_bigint_id_1) from pkeyBigint1M_1 + - workload: AGGRG4_distinct_bigint_10M_table_rows + run: + - name: pg_distinct_bigint_10M_table_rows + weight: 100 + queries: + - query: select distinct(col_bigint_id_1) from pkeyBigint10M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG5_impact_of_max_on_increasing_row.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG5_impact_of_max_on_increasing_row.yaml new file mode 100644 index 000000000..6db623dba --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG5_impact_of_max_on_increasing_row.yaml @@ -0,0 +1,162 @@ +#TEST FOR POSTGRES +#GOAL5 Impact of increasing rows on max aggregate +#TESTS: +#Aggregate function max on 0.1M rows +#Aggregate function max on 1M rows +#Aggregate function max on 10M rows +type: POSTGRES +driver: org.postgresql.Driver +url: jdbc:postgresql://{{endpoint}}:5432/postgres?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + - CREATE TABLE pkeyBigint1L_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint10M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + loadRules: + - table: pkeyBigint1L_ + count: 1 + rows: 100000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 100000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 100000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint10M_ + count: 1 + rows: 10000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 10000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 10000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG5_max_bigint_1L_table_rows + run: + - name: pg_distinct_bigint_non_indexed_column + weight: 100 + queries: + - query: select max(col_bigint_id_1) from pkeyBigint1L_1 + - workload: AGGRG5_max_bigint_1M_table_rows + run: + - name: pg_distinct_bigint_1M_table_rows + weight: 100 + queries: + - query: select max(col_bigint_id_1) from pkeyBigint1M_1 + - workload: AGGRG5_max_bigint_10M_table_rows + run: + - name: pg_distinct_bigint_10M_table_rows + weight: 100 + queries: + - query: select max(col_bigint_id_1) from pkeyBigint10M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG6_impact_of_sum_on_increasing_row.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG6_impact_of_sum_on_increasing_row.yaml new file mode 100644 index 000000000..f3b1d0f19 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG6_impact_of_sum_on_increasing_row.yaml @@ -0,0 +1,162 @@ +#TEST FOR POSTGRES +#GOAL6 Impact of increasing rows on sum aggregate +#TESTS: +#Aggregate function sum on 0.1M rows +#Aggregate function sum on 1M rows +#Aggregate function sum on 10M rows +type: POSTGRES +driver: org.postgresql.Driver +url: jdbc:postgresql://{{endpoint}}:5432/postgres?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + - CREATE TABLE pkeyBigint1L_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint10M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + loadRules: + - table: pkeyBigint1L_ + count: 1 + rows: 100000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 100000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 100000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint10M_ + count: 1 + rows: 10000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 10000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 10000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG6_sum_bigint_1L_table_rows + run: + - name: pg_distinct_bigint_non_indexed_column + weight: 100 + queries: + - query: select sum(col_bigint_id_1) from pkeyBigint1L_1 + - workload: AGGRG6_sum_bigint_1M_table_rows + run: + - name: pg_distinct_bigint_1M_table_rows + weight: 100 + queries: + - query: select sum(col_bigint_id_1) from pkeyBigint1M_1 + - workload: AGGRG6_sum_bigint_10M_table_rows + run: + - name: pg_distinct_bigint_10M_table_rows + weight: 100 + queries: + - query: select sum(col_bigint_id_1) from pkeyBigint10M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG7_filter_condition_index_type_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG7_filter_condition_index_type_impact.yaml new file mode 100644 index 000000000..bb29aaed4 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG7_filter_condition_index_type_impact.yaml @@ -0,0 +1,166 @@ +#TEST FOR POSTGRES +#GOAL7 Impact of index type on aggregation +#TESTS: +#Aggregate function count with 1 filter condition on non indexed column of bigint datatype +#Aggregate function count with 1 filter condition on pkey column of bigint datatype +#Aggregate function count with 1 filter condition on secondary indexed column of bigint datatype +type: POSTGRES +driver: org.postgresql.Driver +url: jdbc:postgresql://{{endpoint}}:5432/postgres?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + - CREATE TABLE nonIndexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE Indexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_1(col_bigint_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar10_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar500_id_1); + - CREATE INDEX ON Indexed1M_1(col_float5_1); + cleanup: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + loadRules: + - table: nonIndexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: Indexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG7_count_bigint_non_indexed_column_with_filter_condition + run: + - name: pg_count_bigint_non_indexed_column_with_filter_condition + weight: 100 + queries: + - query: select count(col_bigint_id_1) from nonIndexed1M_1 where col_bigint_id_1>1 + - workload: AGGRG7_count_bigint_pkey_column_with_filter_condition + run: + - name: pg_count_bigint_non_indexed_column_with_filter_condition + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_1 where col_bigint_id_1>1 + - workload: AGGRG7_count_bigint_secondary_indexed_column_with_filter_condition + run: + - name: pg_count_bigint_non_indexed_column_with_filter_condition + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_1 where col_bigint_id_1>1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG8_composite_key_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG8_composite_key_impact.yaml new file mode 100644 index 000000000..760fe3e11 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/AGGRG8_composite_key_impact.yaml @@ -0,0 +1,186 @@ +#TEST FOR POSTGRES +#GOAL8 Impact of composite constraints +#Aggregate function count on 1st elelemt of composite pkey +#Aggregate function count on 2nd elelemt of composite pkey +#Aggregate function count on 1st elelemt of composite pkey with 1 filter on 1st element +#Aggregate function count on 2nd elelemt of composite pkey with 1 filter on 2nd element +#Aggregate function count on 1st elelemt of composite pkey with 1 filter on 2nd element +#Aggregate function count on 2nd elelemt of composite pkey with 1 filter on 1st element +#Aggregate function count on 1st elelemt of composite secondary key +#Repeat for indexed col +type: POSTGRES +driver: org.postgresql.Driver +url: jdbc:postgresql://{{endpoint}}:5432/postgres?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_comp2keys_1; + - DROP TABLE IF EXISTS Indexed1M_comp2keys_1; + - CREATE TABLE pkeyBigint1M_comp2keys_1(col_bigint_id_1 bigint, col_bigint_id_2 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1, col_bigint_id_2)); + - CREATE TABLE Indexed1M_comp2keys_1(col_bigint_id_1 bigint, col_bigint_id_2 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_comp2keys_1(col_bigint_id_1, col_bigint_id_1); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_comp2keys_1; + - DROP TABLE IF EXISTS Indexed1M_comp2keys_1; + loadRules: + - table: pkeyBigint1M_comp2keys_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 2 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 4 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: Indexed1M_comp2keys_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 2 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 4 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + + executeRules: + - workload: AGGRG8_count_bigint_comp_pkey_first_ele + run: + - name: pg_count_bigint_comp_pkey_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_comp2keys_1 + - workload: AGGRG8_count_bigint_comp_pkey_second_ele + run: + - name: pg_count_bigint_comp_pkey_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from pkeyBigint1M_comp2keys_1 + - workload: AGGRG8_count_bigint_comp_pkey_withfilter_first_ele + run: + - name: pg_count_bigint_comp_pkey_withfilter_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_comp2keys_1 where col_bigint_id_1>1 + - workload: AGGRG8_count_bigint_comp_pkey_withfilter_second_ele + run: + - name: pg_count_bigint_comp_pkey_withfilter_second_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from pkeyBigint1M_comp2keys_1 where col_bigint_id_2>1 + - workload: AGGRG8_count_bigint_comp_pkey_project_first_ele_withfilter_sec_ele + run: + - name: pg_count_bigint_comp_pkey_project_first_ele_withfilter_sec_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_comp2keys_1 where col_bigint_id_2>1 + - workload: AGGRG8_count_bigint_comp_pkey_project_sec_ele_withfilter_first_ele + run: + - name: pg_count_bigint_comp_pkey_project_sec_ele_withfilter_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from pkeyBigint1M_comp2keys_1 where col_bigint_id_1>1 + + + - workload: AGGRG8_count_bigint_comp_index_first_ele + run: + - name: pg_count_bigint_comp_index_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_comp2keys_1 + - workload: AGGRG8_count_bigint_comp_index_second_ele + run: + - name: pg_count_bigint_comp_index_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from Indexed1M_comp2keys_1 + - workload: AGGRG8_count_bigint_comp_index_withfilter_first_ele + run: + - name: pg_count_bigint_comp_index_withfilter_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_comp2keys_1 where col_bigint_id_1>1 + - workload: AGGRG8_count_bigint_comp_index_withfilter_second_ele + run: + - name: pg_count_bigint_comp_index_withfilter_second_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from Indexed1M_comp2keys_1 where col_bigint_id_2>1 + - workload: AGGRG8_count_bigint_comp_index_project_first_ele_withfilter_sec_ele + run: + - name: pg_count_bigint_comp_index_project_first_ele_withfilter_sec_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_comp2keys_1 where col_bigint_id_2>1 + - workload: AGGRG8_count_bigint_comp_index_project_sec_ele_withfilter_first_ele + run: + - name: pg_count_bigint_comp_index_project_sec_ele_withfilter_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from Indexed1M_comp2keys_1 where col_bigint_id_1>1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/ORDG1_index_type_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/ORDG1_index_type_impact.yaml new file mode 100644 index 000000000..8f8a7c3f4 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/ORDG1_index_type_impact.yaml @@ -0,0 +1,166 @@ +#TEST FOR POSTGRES +#GOAL1 Impact of index type on Orderby +#TESTS: +#Orderby clause on non indexed column of bigint datatype +#Orderby clause on pkey of bigint datatype +#Orderby clause on secondary indexed column of bigint datatype +type: POSTGRES +driver: org.postgresql.Driver +url: jdbc:postgresql://{{endpoint}}:5432/postgres?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + - CREATE TABLE nonIndexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE Indexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_1(col_bigint_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar10_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar500_id_1); + - CREATE INDEX ON Indexed1M_1(col_float5_1); + cleanup: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + loadRules: + - table: nonIndexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: Indexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: ORDG1_ordby_bigint_non_indexed_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from nonIndexed1M_1 order by col_bigint_id_1 + - workload: ORDG1_ordby_bigint_pkey_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from pkeyBigint1M_1 order by col_bigint_id_1 + - workload: ORDG1_ordby_bigint_secondary_indexed_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from Indexed1M_1 order by col_bigint_id_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/ORDG2_index_filter_condition_type_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/ORDG2_index_filter_condition_type_impact.yaml new file mode 100644 index 000000000..990cf9b01 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/ORDG2_index_filter_condition_type_impact.yaml @@ -0,0 +1,166 @@ +#TEST FOR POSTGRES +#GOAL2 Impact of index type on Orderby +#TESTS: +#Orderby clause with 1 filter condition on non indexed column of bigint datatype +#Orderby clause with 1 filter condition on pkey of bigint datatype +#Orderby clause on with 1 filter condition secondary indexed column of bigint datatype +type: POSTGRES +driver: org.postgresql.Driver +url: jdbc:postgresql://{{endpoint}}:5432/postgres?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + - CREATE TABLE nonIndexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE Indexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_1(col_bigint_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar10_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar500_id_1); + - CREATE INDEX ON Indexed1M_1(col_float5_1); + cleanup: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + loadRules: + - table: nonIndexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: Indexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: ORDG2_ordby_bigint_non_indexed_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from nonIndexed1M_1 where col_bigint_id_1>1 order by col_bigint_id_1 + - workload: ORDG2_ordby_bigint_pkey_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from pkeyBigint1M_1 where col_bigint_id_1>1 order by col_bigint_id_1 + - workload: ORDG2_ordby_bigint_secondary_indexed_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from Indexed1M_1 where col_bigint_id_1>1 order by col_bigint_id_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/ORDG3_impact_of_datatype.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/ORDG3_impact_of_datatype.yaml new file mode 100644 index 000000000..05bc308c5 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/ORDG3_impact_of_datatype.yaml @@ -0,0 +1,163 @@ +#TEST FOR POSTGRES +#GOAL3 Impact of datatype on Orderby clause +#TESTS: +#Impact of orderby clause on PKEY of bigint datatype +#Impact of orderby clause on PKEY of varchar datatype +#Impact of orderby clause on PKEY of uuid datatype +#Impact of orderby clause on PKEY of date datatype +type: POSTGRES +driver: org.postgresql.Driver +url: jdbc:postgresql://{{endpoint}}:5432/postgres?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyVarchar1001M_1; + - DROP TABLE IF EXISTS pkeyUuid1M_1; + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyVarchar1001M_1(col_varchar100_pid_1 varchar(100), col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_varchar100_pid_1)); + - CREATE TABLE pkeyUuid1M_1(col_uuid_id_1 uuid, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_uuid_id_1)); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyVarchar1001M_1; + - DROP TABLE IF EXISTS pkeyUuid1M_1; + loadRules: + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyVarchar1001M_ + count: 1 + rows: 1000000 + columns: + - name: col_varchar100_pid_ + count: 1 + util: PrimaryStringGen + params: [1, 100] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyUuid1M_ + count: 1 + rows: 1000000 + columns: + - name: col_uuid_id_ + count: 1 + util: RandomUUID + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + + executeRules: + - workload: ORDG3_ordby_bigint_pkey_column + run: + - name: pg_ordby_bigint_pkey_column + weight: 100 + queries: + - query: select col_bigint_id_1 from pkeyBigint1M_1 order by col_bigint_id_1 + - workload: ORDG3_ordby_varchar_pkey_column + run: + - name: pg_ordby_varchar_pkey_column + weight: 100 + queries: + - query: select col_varchar100_pid_1 from pkeyVarchar1001M_1 order by col_varchar100_pid_1 + - workload: ORDG3_ordby_uuid_pkey_column + run: + - name: pg_ordby_uuid_pkey_column + weight: 100 + queries: + - query: select col_uuid_id_1 from pkeyUuid1M_1 order by col_uuid_id_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/ORDG4_impact_of_datatype_with_sec_ind.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/ORDG4_impact_of_datatype_with_sec_ind.yaml new file mode 100644 index 000000000..bb60da72d --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/postgres/ORDG4_impact_of_datatype_with_sec_ind.yaml @@ -0,0 +1,210 @@ +#TEST FOR POSTGRES +#GOAL3 Impact of datatype on Orderby clause +#TESTS: +#Impact of orderby clause on SecIND of bigint datatype +#Impact of orderby clause on SecIND of varchar datatype +#Impact of orderby clause on SecIND of uuid datatype +#Impact of orderby clause on SecIND of date datatype +type: POSTGRES +driver: org.postgresql.Driver +url: jdbc:postgresql://{{endpoint}}:5432/postgres?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS indexedBigint1M_1; + - DROP TABLE IF EXISTS indexedVarchar1001M_1; + - DROP TABLE IF EXISTS indexedUuid1M_1; + - DROP TABLE IF EXISTS indexedDate1M_1; + - CREATE TABLE indexedBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE indexedVarchar1001M_1(col_varchar100_pid_1 varchar(100), col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE indexedUuid1M_1(col_uuid_id_1 uuid, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE indexedDate1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_date_id_1 date, col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON indexedBigint1M_1(col_bigint_id_1); + - CREATE INDEX ON indexedVarchar1001M_1(col_varchar100_pid_1); + - CREATE INDEX ON indexedUuid1M_1(col_uuid_id_1); + - CREATE INDEX ON indexedDate1M_1(col_date_id_1); + cleanup: + - DROP TABLE IF EXISTS indexedBigint1M_1; + - DROP TABLE IF EXISTS indexedVarchar1001M_1; + - DROP TABLE IF EXISTS indexedUuid1M_1; + - DROP TABLE IF EXISTS indexedDate1M_1; + loadRules: + - table: indexedBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: indexedVarchar1001M_ + count: 1 + rows: 1000000 + columns: + - name: col_varchar100_pid_ + count: 1 + util: PrimaryStringGen + params: [1, 100] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: indexedUuid1M_ + count: 1 + rows: 1000000 + columns: + - name: col_uuid_id_ + count: 1 + util: RandomUUID + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: indexedDate1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_date_id_ + count: 1 + util: RandomDateBtwYears + params: [1900, 2022] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: ORDG4_ordby_bigint_indexed_column + run: + - name: pg_ordby_bigint_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from indexedBigint1M_1 order by col_bigint_id_1 + - workload: ORDG4_ordby_varchar_indexed_column + run: + - name: pg_ordby_varchar_indexed_column + weight: 100 + queries: + - query: select indexedVarchar1001M_1 from indexedVarchar1001M_1 order by indexedVarchar1001M_1 + - workload: ORDG4_ordby_uuid_indexed_column + run: + - name: pg_ordby_uuid_indexed_column + weight: 100 + queries: + - query: select col_uuid_id_1 from indexedUuid1M_1 order by col_uuid_id_1 + - workload: ORDG4_ordby_date_indexed_column + run: + - name: pg_ordby_date_indexed_column + weight: 100 + queries: + - query: select col_date_id_1 from indexedDate1M_1 order by col_date_id_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG1_index_type_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG1_index_type_impact.yaml new file mode 100644 index 000000000..2cc699281 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG1_index_type_impact.yaml @@ -0,0 +1,167 @@ +#TEST FOR YUGABYTE COLOCATED TABLES +#GOAL1 Impact of index type on aggregation +#TESTS: +#Aggregate function count on non indexed column of bigint datatype +#Aggregate function count on pkey column of bigint datatype +#Aggregate function count on secondary indexed column of bigint datatype +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +createdb: drop database if exists yb_colocated; create database yb_colocated with colocated=true +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + - CREATE TABLE nonIndexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE Indexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_1(col_bigint_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar10_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar500_id_1); + - CREATE INDEX ON Indexed1M_1(col_float5_1); + cleanup: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + loadRules: + - table: nonIndexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: Indexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG1_count_bigint_non_indexed_column + run: + - name: ybc_count_bigint_non_indexed_column + weight: 100 + queries: + - query: select count(col_bigint_id_1) from nonIndexed1M_1 + - workload: AGGRG1_count_bigint_pkey_column + run: + - name: ybc_count_bigint_non_indexed_column + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_1 + - workload: AGGRG1_count_bigint_secondary_indexed_column + run: + - name: ybc_count_bigint_non_indexed_column + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG2_impact_of_increasing_row.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG2_impact_of_increasing_row.yaml new file mode 100644 index 000000000..80eb59bb5 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG2_impact_of_increasing_row.yaml @@ -0,0 +1,163 @@ +#TEST FOR YUGABYTE COLOCATED TABLES +#GOAL1 Impact of increasing rows on count aggregate +#TESTS: +#Aggregate function count on 0.1M rows +#Aggregate function count on 1M rows +#Aggregate function count on 10M rows +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +createdb: drop database if exists yb_colocated; create database yb_colocated with colocated=true +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + - CREATE TABLE pkeyBigint1L_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint10M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + loadRules: + - table: pkeyBigint1L_ + count: 1 + rows: 100000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 100000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 100000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint10M_ + count: 1 + rows: 10000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 10000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 10000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG2_count_bigint_1L_table_rows + run: + - name: ybc_count_bigint_non_indexed_column + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1L_1 + - workload: AGGRG2_count_bigint_1M_table_rows + run: + - name: ybc_count_bigint_1M_table_rows + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_1 + - workload: AGGRG2_count_bigint_10M_table_rows + run: + - name: ybc_count_bigint_10M_table_rows + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint10M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG3_projection_datatype_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG3_projection_datatype_impact.yaml new file mode 100644 index 000000000..f00220a94 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG3_projection_datatype_impact.yaml @@ -0,0 +1,105 @@ +#TEST FOR YUGABYTE COLOCATED TABLES +#GOAL3 Impact of projection datatype on aggregate count +#TESTS: +#Aggregate function count on all tupples(*) +#Aggregate function count on indexed bigint column +#Aggregate function count on indexed float column +#Aggregate function count on indexed varchar(10) column +#Aggregate function count on indexed varchar(500) column +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +createdb: drop database if exists yb_colocated; create database yb_colocated with colocated=true +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS Indexed1M_1; + - CREATE TABLE Indexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_1(col_bigint_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar10_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar500_id_1); + - CREATE INDEX ON Indexed1M_1(col_float5_1); + cleanup: + - DROP TABLE IF EXISTS Indexed1M_1; + loadRules: + - table: Indexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG3_count_on_all_tupples_columns + run: + - name: ybc_count_bigint_on_all_tupples_columns + weight: 100 + queries: + - query: select count(*) from Indexed1M_1 + - workload: AGGRG3_count_bigint_on_indexed + run: + - name: ybc_count_on_indexed_bigint + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_1 + - workload: AGGRG3_count_on_indexed_float + run: + - name: ybc_count_on_indexed_varchar10 + weight: 100 + queries: + - query: select count(col_float5_1) from Indexed1M_1 + - workload: AGGRG3_count_on_indexed_varchar10 + run: + - name: ybc_count_on_indexed_varchar10 + weight: 100 + queries: + - query: select count(col_varchar10_id_1) from Indexed1M_1 + - workload: AGGRG3_count_on_indexed_varchar500 + run: + - name: ybc_count_on_indexed_varchar500 + weight: 100 + queries: + - query: select count(col_varchar500_id_1) from Indexed1M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG4_impact_of_distinct_on_increasing_row.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG4_impact_of_distinct_on_increasing_row.yaml new file mode 100644 index 000000000..d1fae84c4 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG4_impact_of_distinct_on_increasing_row.yaml @@ -0,0 +1,163 @@ +#TEST FOR YUGABYTE COLOCATED TABLES +#GOAL4 Impact of increasing rows on distinct aggregate +#TESTS: +#Aggregate function distinct on 0.1M rows +#Aggregate function distinct on 1M rows +#Aggregate function distinct on 10M rows +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +createdb: drop database if exists yb_colocated; create database yb_colocated with colocated=true +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + - CREATE TABLE pkeyBigint1L_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint10M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + loadRules: + - table: pkeyBigint1L_ + count: 1 + rows: 100000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 100000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 100000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint10M_ + count: 1 + rows: 10000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 10000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 10000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG4_distinct_bigint_1L_table_rows + run: + - name: ybc_distinct_bigint_non_indexed_column + weight: 100 + queries: + - query: select distinct(col_bigint_id_1) from pkeyBigint1L_1 + - workload: AGGRG4_distinct_bigint_1M_table_rows + run: + - name: ybc_distinct_bigint_1M_table_rows + weight: 100 + queries: + - query: select distinct(col_bigint_id_1) from pkeyBigint1M_1 + - workload: AGGRG4_distinct_bigint_10M_table_rows + run: + - name: ybc_distinct_bigint_10M_table_rows + weight: 100 + queries: + - query: select distinct(col_bigint_id_1) from pkeyBigint10M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG5_impact_of_max_on_increasing_row.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG5_impact_of_max_on_increasing_row.yaml new file mode 100644 index 000000000..41c2729d9 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG5_impact_of_max_on_increasing_row.yaml @@ -0,0 +1,163 @@ +#TEST FOR YUGABYTE COLOCATED TABLES +#GOAL5 Impact of increasing rows on max aggregate +#TESTS: +#Aggregate function max on 0.1M rows +#Aggregate function max on 1M rows +#Aggregate function max on 10M rows +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +createdb: drop database if exists yb_colocated; create database yb_colocated with colocated=true +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + - CREATE TABLE pkeyBigint1L_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint10M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + loadRules: + - table: pkeyBigint1L_ + count: 1 + rows: 100000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 100000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 100000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint10M_ + count: 1 + rows: 10000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 10000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 10000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG5_max_bigint_1L_table_rows + run: + - name: ybc_distinct_bigint_non_indexed_column + weight: 100 + queries: + - query: select max(col_bigint_id_1) from pkeyBigint1L_1 + - workload: AGGRG5_max_bigint_1M_table_rows + run: + - name: ybc_distinct_bigint_1M_table_rows + weight: 100 + queries: + - query: select max(col_bigint_id_1) from pkeyBigint1M_1 + - workload: AGGRG5_max_bigint_10M_table_rows + run: + - name: ybc_distinct_bigint_10M_table_rows + weight: 100 + queries: + - query: select max(col_bigint_id_1) from pkeyBigint10M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG6_impact_of_sum_on_increasing_row.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG6_impact_of_sum_on_increasing_row.yaml new file mode 100644 index 000000000..fc5c82fd0 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG6_impact_of_sum_on_increasing_row.yaml @@ -0,0 +1,163 @@ +#TEST FOR YUGABYTE COLOCATED TABLES +#GOAL6 Impact of increasing rows on sum aggregate +#TESTS: +#Aggregate function sum on 0.1M rows +#Aggregate function sum on 1M rows +#Aggregate function sum on 10M rows +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +createdb: drop database if exists yb_colocated; create database yb_colocated with colocated=true +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + - CREATE TABLE pkeyBigint1L_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyBigint10M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + loadRules: + - table: pkeyBigint1L_ + count: 1 + rows: 100000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 100000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 100000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint10M_ + count: 1 + rows: 10000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 10000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 10000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG6_sum_bigint_1L_table_rows + run: + - name: ybc_distinct_bigint_non_indexed_column + weight: 100 + queries: + - query: select sum(col_bigint_id_1) from pkeyBigint1L_1 + - workload: AGGRG6_sum_bigint_1M_table_rows + run: + - name: ybc_distinct_bigint_1M_table_rows + weight: 100 + queries: + - query: select sum(col_bigint_id_1) from pkeyBigint1M_1 + - workload: AGGRG6_sum_bigint_10M_table_rows + run: + - name: ybc_distinct_bigint_10M_table_rows + weight: 100 + queries: + - query: select sum(col_bigint_id_1) from pkeyBigint10M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG7_filter_condition_index_type_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG7_filter_condition_index_type_impact.yaml new file mode 100644 index 000000000..2b4d6199a --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG7_filter_condition_index_type_impact.yaml @@ -0,0 +1,167 @@ +#TEST FOR YUGABYTE COLOCATED TABLES +#GOAL7 Impact of index type on aggregation +#TESTS: +#Aggregate function count with 1 filter condition on non indexed column of bigint datatype +#Aggregate function count with 1 filter condition on pkey column of bigint datatype +#Aggregate function count with 1 filter condition on secondary indexed column of bigint datatype +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +createdb: drop database if exists yb_colocated; create database yb_colocated with colocated=true +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + - CREATE TABLE nonIndexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE Indexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_1(col_bigint_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar10_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar500_id_1); + - CREATE INDEX ON Indexed1M_1(col_float5_1); + cleanup: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + loadRules: + - table: nonIndexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: Indexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG7_count_bigint_non_indexed_column_with_filter_condition + run: + - name: ybc_count_bigint_non_indexed_column_with_filter_condition + weight: 100 + queries: + - query: select count(col_bigint_id_1) from nonIndexed1M_1 where col_bigint_id_1>1 + - workload: AGGRG7_count_bigint_pkey_column_with_filter_condition + run: + - name: ybc_count_bigint_non_indexed_column_with_filter_condition + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_1 where col_bigint_id_1>1 + - workload: AGGRG7_count_bigint_secondary_indexed_column_with_filter_condition + run: + - name: ybc_count_bigint_non_indexed_column_with_filter_condition + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_1 where col_bigint_id_1>1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG8_composite_key_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG8_composite_key_impact.yaml new file mode 100644 index 000000000..c5a62c139 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/AGGRG8_composite_key_impact.yaml @@ -0,0 +1,187 @@ +#TEST FOR YUGABYTE COLOCATED TABLES +#GOAL8 Impact of composite constraints +#Aggregate function count on 1st elelemt of composite pkey +#Aggregate function count on 2nd elelemt of composite pkey +#Aggregate function count on 1st elelemt of composite pkey with 1 filter on 1st element +#Aggregate function count on 2nd elelemt of composite pkey with 1 filter on 2nd element +#Aggregate function count on 1st elelemt of composite pkey with 1 filter on 2nd element +#Aggregate function count on 2nd elelemt of composite pkey with 1 filter on 1st element +#Aggregate function count on 1st elelemt of composite secondary key +#Repeat for indexed col +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +createdb: drop database if exists yb_colocated; create database yb_colocated with colocated=true +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_comp2keys_1; + - DROP TABLE IF EXISTS Indexed1M_comp2keys_1; + - CREATE TABLE pkeyBigint1M_comp2keys_1(col_bigint_id_1 bigint, col_bigint_id_2 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1, col_bigint_id_2)); + - CREATE TABLE Indexed1M_comp2keys_1(col_bigint_id_1 bigint, col_bigint_id_2 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_comp2keys_1(col_bigint_id_1, col_bigint_id_1); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_comp2keys_1; + - DROP TABLE IF EXISTS Indexed1M_comp2keys_1; + loadRules: + - table: pkeyBigint1M_comp2keys_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 2 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 4 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: Indexed1M_comp2keys_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 2 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 4 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + + executeRules: + - workload: AGGRG8_count_bigint_comp_pkey_first_ele + run: + - name: ybc_count_bigint_comp_pkey_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_comp2keys_1 + - workload: AGGRG8_count_bigint_comp_pkey_second_ele + run: + - name: ybc_count_bigint_comp_pkey_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from pkeyBigint1M_comp2keys_1 + - workload: AGGRG8_count_bigint_comp_pkey_withfilter_first_ele + run: + - name: ybc_count_bigint_comp_pkey_withfilter_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_comp2keys_1 where col_bigint_id_1>1 + - workload: AGGRG8_count_bigint_comp_pkey_withfilter_second_ele + run: + - name: ybc_count_bigint_comp_pkey_withfilter_second_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from pkeyBigint1M_comp2keys_1 where col_bigint_id_2>1 + - workload: AGGRG8_count_bigint_comp_pkey_project_first_ele_withfilter_sec_ele + run: + - name: ybc_count_bigint_comp_pkey_project_first_ele_withfilter_sec_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_comp2keys_1 where col_bigint_id_2>1 + - workload: AGGRG8_count_bigint_comp_pkey_project_sec_ele_withfilter_first_ele + run: + - name: ybc_count_bigint_comp_pkey_project_sec_ele_withfilter_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from pkeyBigint1M_comp2keys_1 where col_bigint_id_1>1 + + + - workload: AGGRG8_count_bigint_comp_index_first_ele + run: + - name: ybc_count_bigint_comp_index_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_comp2keys_1 + - workload: AGGRG8_count_bigint_comp_index_second_ele + run: + - name: ybc_count_bigint_comp_index_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from Indexed1M_comp2keys_1 + - workload: AGGRG8_count_bigint_comp_index_withfilter_first_ele + run: + - name: ybc_count_bigint_comp_index_withfilter_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_comp2keys_1 where col_bigint_id_1>1 + - workload: AGGRG8_count_bigint_comp_index_withfilter_second_ele + run: + - name: ybc_count_bigint_comp_index_withfilter_second_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from Indexed1M_comp2keys_1 where col_bigint_id_2>1 + - workload: AGGRG8_count_bigint_comp_index_project_first_ele_withfilter_sec_ele + run: + - name: ybc_count_bigint_comp_index_project_first_ele_withfilter_sec_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_comp2keys_1 where col_bigint_id_2>1 + - workload: AGGRG8_count_bigint_comp_index_project_sec_ele_withfilter_first_ele + run: + - name: ybc_count_bigint_comp_index_project_sec_ele_withfilter_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from Indexed1M_comp2keys_1 where col_bigint_id_1>1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/ORDG1_index_type_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/ORDG1_index_type_impact.yaml new file mode 100644 index 000000000..635082e9b --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/ORDG1_index_type_impact.yaml @@ -0,0 +1,167 @@ +#TEST FOR YUGABYTE Colocated TABLES +#GOAL1 Impact of index type on Orderby +#TESTS: +#Orderby clause on non indexed column of bigint datatype +#Orderby clause on pkey of bigint datatype +#Orderby clause on secondary indexed column of bigint datatype +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +createdb: drop database if exists yb_colocated; create database yb_colocated with colocated=true +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + - CREATE TABLE nonIndexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE Indexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_1(col_bigint_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar10_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar500_id_1); + - CREATE INDEX ON Indexed1M_1(col_float5_1); + cleanup: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + loadRules: + - table: nonIndexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: Indexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: ORDG1_ordby_bigint_non_indexed_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from nonIndexed1M_1 order by col_bigint_id_1 + - workload: ORDG1_ordby_bigint_pkey_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from pkeyBigint1M_1 order by col_bigint_id_1 + - workload: ORDG1_ordby_bigint_secondary_indexed_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from Indexed1M_1 order by col_bigint_id_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/ORDG2_index_filter_condition_type_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/ORDG2_index_filter_condition_type_impact.yaml new file mode 100644 index 000000000..3cd03b63e --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/ORDG2_index_filter_condition_type_impact.yaml @@ -0,0 +1,167 @@ +#TEST FOR YUGABYTE Colocated TABLES +#GOAL2 Impact of index type on Orderby +#TESTS: +#Orderby clause with 1 filter condition on non indexed column of bigint datatype +#Orderby clause with 1 filter condition on pkey of bigint datatype +#Orderby clause on with 1 filter condition secondary indexed column of bigint datatype +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +createdb: drop database if exists yb_colocated; create database yb_colocated with colocated=true +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + - CREATE TABLE nonIndexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE Indexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_1(col_bigint_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar10_id_1); + - CREATE INDEX ON Indexed1M_1(col_varchar500_id_1); + - CREATE INDEX ON Indexed1M_1(col_float5_1); + cleanup: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + loadRules: + - table: nonIndexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: Indexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: ORDG2_ordby_bigint_non_indexed_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from nonIndexed1M_1 where col_bigint_id_1>1 order by col_bigint_id_1 + - workload: ORDG2_ordby_bigint_pkey_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from pkeyBigint1M_1 where col_bigint_id_1>1 order by col_bigint_id_1 + - workload: ORDG2_ordby_bigint_secondary_indexed_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from Indexed1M_1 where col_bigint_id_1>1 order by col_bigint_id_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/ORDG3_impact_of_datatype.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/ORDG3_impact_of_datatype.yaml new file mode 100644 index 000000000..a87c55765 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/ORDG3_impact_of_datatype.yaml @@ -0,0 +1,163 @@ +#TEST FOR YUGABYTE Colocated TABLES +#GOAL3 Impact of datatype on Orderby clause +#TESTS: +#Impact of orderby clause on PKEY of bigint datatype +#Impact of orderby clause on PKEY of varchar datatype +#Impact of orderby clause on PKEY of uuid datatype +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +createdb: drop database if exists yb_colocated; create database yb_colocated with colocated=true +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyVarchar1001M_1; + - DROP TABLE IF EXISTS pkeyUuid1M_1; + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1)); + - CREATE TABLE pkeyVarchar1001M_1(col_varchar100_pid_1 varchar(100), col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_varchar100_pid_1)); + - CREATE TABLE pkeyUuid1M_1(col_uuid_id_1 uuid, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_uuid_id_1)); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyVarchar1001M_1; + - DROP TABLE IF EXISTS pkeyUuid1M_1; + loadRules: + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyVarchar1001M_ + count: 1 + rows: 1000000 + columns: + - name: col_varchar100_pid_ + count: 1 + util: PrimaryStringGen + params: [1, 100] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyUuid1M_ + count: 1 + rows: 1000000 + columns: + - name: col_uuid_id_ + count: 1 + util: RandomUUID + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + + executeRules: + - workload: ORDG3_ordby_bigint_pkey_column + run: + - name: ybc_ordby_bigint_pkey_column + weight: 100 + queries: + - query: select col_bigint_id_1 from pkeyBigint1M_1 order by col_bigint_id_1 + - workload: ORDG3_ordby_varchar_pkey_column + run: + - name: ybc_ordby_varchar_pkey_column + weight: 100 + queries: + - query: select col_varchar100_pid_1 from pkeyVarchar1001M_1 order by col_varchar100_pid_1 + - workload: ORDG3_ordby_uuid_pkey_column + run: + - name: ybc_ordby_uuid_pkey_column + weight: 100 + queries: + - query: select col_uuid_id_1 from pkeyUuid1M_1 order by col_uuid_id_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/ORDG4_impact_of_datatype_with_sec_ind.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/ORDG4_impact_of_datatype_with_sec_ind.yaml new file mode 100644 index 000000000..4ae927d33 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yb_colocated/ORDG4_impact_of_datatype_with_sec_ind.yaml @@ -0,0 +1,211 @@ +#TEST FOR YUGABYTE Colocated TABLES +#GOAL3 Impact of datatype on Orderby clause +#TESTS: +#Impact of orderby clause on SecIND of bigint datatype +#Impact of orderby clause on SecIND of varchar datatype +#Impact of orderby clause on SecIND of uuid datatype +#Impact of orderby clause on SecIND of date datatype +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +createdb: drop database if exists yb_colocated; create database yb_colocated with colocated=true +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS indexedBigint1M_1; + - DROP TABLE IF EXISTS indexedVarchar1001M_1; + - DROP TABLE IF EXISTS indexedUuid1M_1; + - DROP TABLE IF EXISTS indexedDate1M_1; + - CREATE TABLE indexedBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE indexedVarchar1001M_1(col_varchar100_pid_1 varchar(100), col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE indexedUuid1M_1(col_uuid_id_1 uuid, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE indexedDate1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_date_id_1 date, col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON indexedBigint1M_1(col_bigint_id_1); + - CREATE INDEX ON indexedVarchar1001M_1(col_varchar100_pid_1); + - CREATE INDEX ON indexedUuid1M_1(col_uuid_id_1); + - CREATE INDEX ON indexedDate1M_1(col_date_id_1); + cleanup: + - DROP TABLE IF EXISTS indexedBigint1M_1; + - DROP TABLE IF EXISTS indexedVarchar1001M_1; + - DROP TABLE IF EXISTS indexedUuid1M_1; + - DROP TABLE IF EXISTS indexedDate1M_1; + loadRules: + - table: indexedBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: indexedVarchar1001M_ + count: 1 + rows: 1000000 + columns: + - name: col_varchar100_pid_ + count: 1 + util: PrimaryStringGen + params: [1, 100] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: indexedUuid1M_ + count: 1 + rows: 1000000 + columns: + - name: col_uuid_id_ + count: 1 + util: RandomUUID + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: indexedDate1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_date_id_ + count: 1 + util: RandomDateBtwYears + params: [1900, 2022] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: ORDG4_ordby_bigint_indexed_column + run: + - name: ybc_ordby_bigint_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from indexedBigint1M_1 order by col_bigint_id_1 + - workload: ORDG4_ordby_varchar_indexed_column + run: + - name: ybc_ordby_varchar_indexed_column + weight: 100 + queries: + - query: select indexedVarchar1001M_1 from indexedVarchar1001M_1 order by indexedVarchar1001M_1 + - workload: ORDG4_ordby_uuid_indexed_column + run: + - name: ybc_ordby_uuid_indexed_column + weight: 100 + queries: + - query: select col_uuid_id_1 from indexedUuid1M_1 order by col_uuid_id_1 + - workload: ORDG4_ordby_date_indexed_column + run: + - name: ybc_ordby_date_indexed_column + weight: 100 + queries: + - query: select col_date_id_1 from indexedDate1M_1 order by col_date_id_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG1_index_type_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG1_index_type_impact.yaml new file mode 100644 index 000000000..2e272d6fc --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG1_index_type_impact.yaml @@ -0,0 +1,166 @@ +#TEST FOR YUGABYTE REGULAR TABLES +#GOAL1 Impact of index type on aggregation +#TESTS: +#Aggregate function count on non indexed column of bigint datatype +#Aggregate function count on pkey column of bigint datatype +#Aggregate function count on secondary indexed column of bigint datatype +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + - CREATE TABLE nonIndexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + - CREATE TABLE Indexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_1(col_bigint_id_1 ASC); + - CREATE INDEX ON Indexed1M_1(col_varchar10_id_1 ASC); + - CREATE INDEX ON Indexed1M_1(col_varchar500_id_1 ASC); + - CREATE INDEX ON Indexed1M_1(col_float5_1 ASC); + cleanup: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + loadRules: + - table: nonIndexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: Indexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG1_count_bigint_non_indexed_column + run: + - name: yb_count_bigint_non_indexed_column + weight: 100 + queries: + - query: select count(col_bigint_id_1) from nonIndexed1M_1 + - workload: AGGRG1_count_bigint_pkey_column + run: + - name: yb_count_bigint_non_indexed_column + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_1 + - workload: AGGRG1_count_bigint_secondary_indexed_column + run: + - name: yb_count_bigint_non_indexed_column + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG2_impact_of_increasing_row.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG2_impact_of_increasing_row.yaml new file mode 100644 index 000000000..53680acc7 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG2_impact_of_increasing_row.yaml @@ -0,0 +1,162 @@ +#TEST FOR YUGABYTE REGULAR TABLES +#GOAL1 Impact of increasing rows on count aggregate +#TESTS: +#Aggregate function count on 0.1M rows +#Aggregate function count on 1M rows +#Aggregate function count on 10M rows +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + - CREATE TABLE pkeyBigint1L_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + - CREATE TABLE pkeyBigint10M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + loadRules: + - table: pkeyBigint1L_ + count: 1 + rows: 100000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 100000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 100000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint10M_ + count: 1 + rows: 10000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 10000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 10000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG2_count_bigint_1L_table_rows + run: + - name: yb_count_bigint_non_indexed_column + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1L_1 + - workload: AGGRG2_count_bigint_1M_table_rows + run: + - name: yb_count_bigint_1M_table_rows + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_1 + - workload: AGGRG2_count_bigint_10M_table_rows + run: + - name: yb_count_bigint_10M_table_rows + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint10M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG3_projection_datatype_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG3_projection_datatype_impact.yaml new file mode 100644 index 000000000..925279580 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG3_projection_datatype_impact.yaml @@ -0,0 +1,104 @@ +#TEST FOR YUGABYTE REGULAR TABLES +#GOAL3 Impact of projection datatype on aggregate count +#TESTS: +#Aggregate function count on all tupples(*) +#Aggregate function count on indexed bigint column +#Aggregate function count on indexed float column +#Aggregate function count on indexed varchar(10) column +#Aggregate function count on indexed varchar(500) column +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS Indexed1M_1; + - CREATE TABLE Indexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_1(col_bigint_id_1 ASC); + - CREATE INDEX ON Indexed1M_1(col_varchar10_id_1 ASC); + - CREATE INDEX ON Indexed1M_1(col_varchar500_id_1 ASC); + - CREATE INDEX ON Indexed1M_1(col_float5_1 ASC); + cleanup: + - DROP TABLE IF EXISTS Indexed1M_1; + loadRules: + - table: Indexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG3_count_on_all_tupples_columns + run: + - name: yb_count_bigint_on_all_tupples_columns + weight: 100 + queries: + - query: select count(*) from Indexed1M_1 + - workload: AGGRG3_count_bigint_on_indexed + run: + - name: yb_count_on_indexed_bigint + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_1 + - workload: AGGRG3_count_on_indexed_float + run: + - name: yb_count_on_indexed_varchar10 + weight: 100 + queries: + - query: select count(col_float5_1) from Indexed1M_1 + - workload: AGGRG3_count_on_indexed_varchar10 + run: + - name: yb_count_on_indexed_varchar10 + weight: 100 + queries: + - query: select count(col_varchar10_id_1) from Indexed1M_1 + - workload: AGGRG3_count_on_indexed_varchar500 + run: + - name: yb_count_on_indexed_varchar500 + weight: 100 + queries: + - query: select count(col_varchar500_id_1) from Indexed1M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG4_impact_of_distinct_on_increasing_row.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG4_impact_of_distinct_on_increasing_row.yaml new file mode 100644 index 000000000..eefc6b270 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG4_impact_of_distinct_on_increasing_row.yaml @@ -0,0 +1,162 @@ +#TEST FOR YUGABYTE REGULAR TABLES +#GOAL4 Impact of increasing rows on distinct aggregate +#TESTS: +#Aggregate function distinct on 0.1M rows +#Aggregate function distinct on 1M rows +#Aggregate function distinct on 10M rows +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + - CREATE TABLE pkeyBigint1L_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + - CREATE TABLE pkeyBigint10M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + loadRules: + - table: pkeyBigint1L_ + count: 1 + rows: 100000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 100000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 100000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint10M_ + count: 1 + rows: 10000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 10000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 10000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG4_distinct_bigint_1L_table_rows + run: + - name: yb_distinct_bigint_non_indexed_column + weight: 100 + queries: + - query: select distinct(col_bigint_id_1) from pkeyBigint1L_1 + - workload: AGGRG4_distinct_bigint_1M_table_rows + run: + - name: yb_distinct_bigint_1M_table_rows + weight: 100 + queries: + - query: select distinct(col_bigint_id_1) from pkeyBigint1M_1 + - workload: AGGRG4_distinct_bigint_10M_table_rows + run: + - name: yb_distinct_bigint_10M_table_rows + weight: 100 + queries: + - query: select distinct(col_bigint_id_1) from pkeyBigint10M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG5_impact_of_max_on_increasing_row.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG5_impact_of_max_on_increasing_row.yaml new file mode 100644 index 000000000..fb808b077 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG5_impact_of_max_on_increasing_row.yaml @@ -0,0 +1,162 @@ +#TEST FOR YUGABYTE REGULAR TABLES +#GOAL5 Impact of increasing rows on max aggregate +#TESTS: +#Aggregate function max on 0.1M rows +#Aggregate function max on 1M rows +#Aggregate function max on 10M rows +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + - CREATE TABLE pkeyBigint1L_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + - CREATE TABLE pkeyBigint10M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + loadRules: + - table: pkeyBigint1L_ + count: 1 + rows: 100000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 100000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 100000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint10M_ + count: 1 + rows: 10000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 10000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 10000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG5_max_bigint_1L_table_rows + run: + - name: yb_distinct_bigint_non_indexed_column + weight: 100 + queries: + - query: select max(col_bigint_id_1) from pkeyBigint1L_1 + - workload: AGGRG5_max_bigint_1M_table_rows + run: + - name: yb_distinct_bigint_1M_table_rows + weight: 100 + queries: + - query: select max(col_bigint_id_1) from pkeyBigint1M_1 + - workload: AGGRG5_max_bigint_10M_table_rows + run: + - name: yb_distinct_bigint_10M_table_rows + weight: 100 + queries: + - query: select max(col_bigint_id_1) from pkeyBigint10M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG6_impact_of_sum_on_increasing_row.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG6_impact_of_sum_on_increasing_row.yaml new file mode 100644 index 000000000..17fb97bc8 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG6_impact_of_sum_on_increasing_row.yaml @@ -0,0 +1,162 @@ +#TEST FOR YUGABYTE REGULAR TABLES +#GOAL6 Impact of increasing rows on sum aggregate +#TESTS: +#Aggregate function sum on 0.1M rows +#Aggregate function sum on 1M rows +#Aggregate function sum on 10M rows +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + - CREATE TABLE pkeyBigint1L_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + - CREATE TABLE pkeyBigint10M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyBigint1L_1; + - DROP TABLE IF EXISTS pkeyBigint10M_1; + loadRules: + - table: pkeyBigint1L_ + count: 1 + rows: 100000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 100000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 100000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 100000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint10M_ + count: 1 + rows: 10000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 10000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 10000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 10000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG6_sum_bigint_1L_table_rows + run: + - name: yb_distinct_bigint_non_indexed_column + weight: 100 + queries: + - query: select sum(col_bigint_id_1) from pkeyBigint1L_1 + - workload: AGGRG6_sum_bigint_1M_table_rows + run: + - name: yb_distinct_bigint_1M_table_rows + weight: 100 + queries: + - query: select sum(col_bigint_id_1) from pkeyBigint1M_1 + - workload: AGGRG6_sum_bigint_10M_table_rows + run: + - name: yb_distinct_bigint_10M_table_rows + weight: 100 + queries: + - query: select sum(col_bigint_id_1) from pkeyBigint10M_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG7_filter_condition_index_type_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG7_filter_condition_index_type_impact.yaml new file mode 100644 index 000000000..4fd7a8b6b --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG7_filter_condition_index_type_impact.yaml @@ -0,0 +1,163 @@ +#TEST FOR YUGABYTE REGULAR TABLES +#GOAL7 Impact of index type on aggregation +#TESTS: +#Aggregate function count with 1 filter condition on non indexed column of bigint datatype +#Aggregate function count with 1 filter condition on pkey column of bigint datatype +#Aggregate function count with 1 filter condition on secondary indexed column of bigint datatype +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + - CREATE TABLE nonIndexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + - CREATE TABLE Indexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_1(col_bigint_id_1 ASC); + cleanup: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + loadRules: + - table: nonIndexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: Indexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: AGGRG7_count_bigint_non_indexed_column_with_filter_condition + run: + - name: yb_count_bigint_non_indexed_column_with_filter_condition + weight: 100 + queries: + - query: select count(col_bigint_id_1) from nonIndexed1M_1 where col_bigint_id_1>1 + - workload: AGGRG7_count_bigint_pkey_column_with_filter_condition + run: + - name: yb_count_bigint_non_indexed_column_with_filter_condition + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_1 where col_bigint_id_1>1 + - workload: AGGRG7_count_bigint_secondary_indexed_column_with_filter_condition + run: + - name: yb_count_bigint_non_indexed_column_with_filter_condition + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_1 where col_bigint_id_1>1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG8_composite_key_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG8_composite_key_impact.yaml new file mode 100644 index 000000000..be0509780 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/AGGRG8_composite_key_impact.yaml @@ -0,0 +1,186 @@ +#TEST FOR YUGABYTE REGULAR TABLES +#GOAL8 Impact of composite constraints +#Aggregate function count on 1st elelemt of composite pkey +#Aggregate function count on 2nd elelemt of composite pkey +#Aggregate function count on 1st elelemt of composite pkey with 1 filter on 1st element +#Aggregate function count on 2nd elelemt of composite pkey with 1 filter on 2nd element +#Aggregate function count on 1st elelemt of composite pkey with 1 filter on 2nd element +#Aggregate function count on 2nd elelemt of composite pkey with 1 filter on 1st element +#Aggregate function count on 1st elelemt of composite secondary key +#Repeat for indexed col +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_comp2keys_1; + - DROP TABLE IF EXISTS Indexed1M_comp2keys_1; + - CREATE TABLE pkeyBigint1M_comp2keys_1(col_bigint_id_1 bigint, col_bigint_id_2 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC, col_bigint_id_2 ASC)); + - CREATE TABLE Indexed1M_comp2keys_1(col_bigint_id_1 bigint, col_bigint_id_2 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_comp2keys_1(col_bigint_id_1 ASC, col_bigint_id_1 ASC); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_comp2keys_1; + - DROP TABLE IF EXISTS Indexed1M_comp2keys_1; + loadRules: + - table: pkeyBigint1M_comp2keys_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 2 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 4 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: Indexed1M_comp2keys_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 2 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 4 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + + executeRules: + - workload: AGGRG8_count_bigint_comp_pkey_first_ele + run: + - name: yb_count_bigint_comp_pkey_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_comp2keys_1 + - workload: AGGRG8_count_bigint_comp_pkey_second_ele + run: + - name: yb_count_bigint_comp_pkey_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from pkeyBigint1M_comp2keys_1 + - workload: AGGRG8_count_bigint_comp_pkey_withfilter_first_ele + run: + - name: yb_count_bigint_comp_pkey_withfilter_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_comp2keys_1 where col_bigint_id_1>1 + - workload: AGGRG8_count_bigint_comp_pkey_withfilter_second_ele + run: + - name: yb_count_bigint_comp_pkey_withfilter_second_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from pkeyBigint1M_comp2keys_1 where col_bigint_id_2>1 + - workload: AGGRG8_count_bigint_comp_pkey_project_first_ele_withfilter_sec_ele + run: + - name: yb_count_bigint_comp_pkey_project_first_ele_withfilter_sec_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from pkeyBigint1M_comp2keys_1 where col_bigint_id_2>1 + - workload: AGGRG8_count_bigint_comp_pkey_project_sec_ele_withfilter_first_ele + run: + - name: yb_count_bigint_comp_pkey_project_sec_ele_withfilter_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from pkeyBigint1M_comp2keys_1 where col_bigint_id_1>1 + + + - workload: AGGRG8_count_bigint_comp_index_first_ele + run: + - name: yb_count_bigint_comp_index_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_comp2keys_1 + - workload: AGGRG8_count_bigint_comp_index_second_ele + run: + - name: yb_count_bigint_comp_index_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from Indexed1M_comp2keys_1 + - workload: AGGRG8_count_bigint_comp_index_withfilter_first_ele + run: + - name: yb_count_bigint_comp_index_withfilter_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_comp2keys_1 where col_bigint_id_1>1 + - workload: AGGRG8_count_bigint_comp_index_withfilter_second_ele + run: + - name: yb_count_bigint_comp_index_withfilter_second_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from Indexed1M_comp2keys_1 where col_bigint_id_2>1 + - workload: AGGRG8_count_bigint_comp_index_project_first_ele_withfilter_sec_ele + run: + - name: yb_count_bigint_comp_index_project_first_ele_withfilter_sec_ele + weight: 100 + queries: + - query: select count(col_bigint_id_1) from Indexed1M_comp2keys_1 where col_bigint_id_2>1 + - workload: AGGRG8_count_bigint_comp_index_project_sec_ele_withfilter_first_ele + run: + - name: yb_count_bigint_comp_index_project_sec_ele_withfilter_first_ele + weight: 100 + queries: + - query: select count(col_bigint_id_2) from Indexed1M_comp2keys_1 where col_bigint_id_1>1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/ORDG1_index_type_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/ORDG1_index_type_impact.yaml new file mode 100644 index 000000000..79b9db516 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/ORDG1_index_type_impact.yaml @@ -0,0 +1,166 @@ +#TEST FOR YUGABYTE REGULAR TABLES +#GOAL1 Impact of index type on Orderby +#TESTS: +#Orderby clause on non indexed column of bigint datatype +#Orderby clause on pkey of bigint datatype +#Orderby clause on secondary indexed column of bigint datatype +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + - CREATE TABLE nonIndexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + - CREATE TABLE Indexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_1(col_bigint_id_1 ASC); + - CREATE INDEX ON Indexed1M_1(col_varchar10_id_1 ASC); + - CREATE INDEX ON Indexed1M_1(col_varchar500_id_1 ASC); + - CREATE INDEX ON Indexed1M_1(col_float5_1 ASC); + cleanup: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + loadRules: + - table: nonIndexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: Indexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: ORDG1_ordby_bigint_non_indexed_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from nonIndexed1M_1 order by col_bigint_id_1 + - workload: ORDG1_ordby_bigint_pkey_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from pkeyBigint1M_1 order by col_bigint_id_1 + - workload: ORDG1_ordby_bigint_secondary_indexed_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from Indexed1M_1 order by col_bigint_id_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/ORDG2_index_filter_condition_type_impact.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/ORDG2_index_filter_condition_type_impact.yaml new file mode 100644 index 000000000..6b3c275b3 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/ORDG2_index_filter_condition_type_impact.yaml @@ -0,0 +1,166 @@ +#TEST FOR YUGABYTE REGULAR TABLES +#GOAL12 Impact of index type on Orderby +#TESTS: +#Orderby clause with 1 filter condition on non indexed column of bigint datatype +#Orderby clause with 1 filter condition on pkey of bigint datatype +#Orderby clause on with 1 filter condition secondary indexed column of bigint datatype +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + - CREATE TABLE nonIndexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + - CREATE TABLE Indexed1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON Indexed1M_1(col_bigint_id_1 ASC); + - CREATE INDEX ON Indexed1M_1(col_varchar10_id_1 ASC); + - CREATE INDEX ON Indexed1M_1(col_varchar500_id_1 ASC); + - CREATE INDEX ON Indexed1M_1(col_float5_1 ASC); + cleanup: + - DROP TABLE IF EXISTS nonIndexed1M_1; + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS Indexed1M_1; + loadRules: + - table: nonIndexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: Indexed1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: ORDG2_ordby_bigint_non_indexed_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from nonIndexed1M_1 where col_bigint_id_1>1 order by col_bigint_id_1 + - workload: ORDG2_ordby_bigint_pkey_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from pkeyBigint1M_1 where col_bigint_id_1>1 order by col_bigint_id_1 + - workload: ORDG2_ordby_bigint_secondary_indexed_column + run: + - name: yb_ordby_bigint_non_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from Indexed1M_1 where col_bigint_id_1>1 order by col_bigint_id_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/ORDG3_impact_of_datatype.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/ORDG3_impact_of_datatype.yaml new file mode 100644 index 000000000..c3294bb98 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/ORDG3_impact_of_datatype.yaml @@ -0,0 +1,162 @@ +#TEST FOR YUGABYTE REGULAR TABLES +#GOAL3 Impact of datatype on Orderby clause +#TESTS: +#Impact of orderby clause on PKEY of bigint datatype +#Impact of orderby clause on PKEY of varchar datatype +#Impact of orderby clause on PKEY of uuid datatype +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyVarchar1001M_1; + - DROP TABLE IF EXISTS pkeyUuid1M_1; + - CREATE TABLE pkeyBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_bigint_id_1 ASC)); + - CREATE TABLE pkeyVarchar1001M_1(col_varchar100_pid_1 varchar(100), col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_varchar100_pid_1 ASC)); + - CREATE TABLE pkeyUuid1M_1(col_uuid_id_1 uuid, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500), PRIMARY KEY(col_uuid_id_1 ASC)); + cleanup: + - DROP TABLE IF EXISTS pkeyBigint1M_1; + - DROP TABLE IF EXISTS pkeyVarchar1001M_1; + - DROP TABLE IF EXISTS pkeyUuid1M_1; + loadRules: + - table: pkeyBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyVarchar1001M_ + count: 1 + rows: 1000000 + columns: + - name: col_varchar100_pid_ + count: 1 + util: PrimaryStringGen + params: [1, 100] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: pkeyUuid1M_ + count: 1 + rows: 1000000 + columns: + - name: col_uuid_id_ + count: 1 + util: RandomUUID + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + + executeRules: + - workload: ORDG3_ordby_bigint_pkey_column + run: + - name: yb_ordby_bigint_pkey_column + weight: 100 + queries: + - query: select col_bigint_id_1 from pkeyBigint1M_1 order by col_bigint_id_1 + - workload: ORDG3_ordby_varchar_pkey_column + run: + - name: yb_ordby_varchar_pkey_column + weight: 100 + queries: + - query: select col_varchar100_pid_1 from pkeyVarchar1001M_1 order by col_varchar100_pid_1 + - workload: ORDG3_ordby_uuid_pkey_column + run: + - name: yb_ordby_uuid_pkey_column + weight: 100 + queries: + - query: select col_uuid_id_1 from pkeyUuid1M_1 order by col_uuid_id_1 \ No newline at end of file diff --git a/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/ORDG4_impact_of_datatype_with_sec_ind.yaml b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/ORDG4_impact_of_datatype_with_sec_ind.yaml new file mode 100644 index 000000000..e211d85c2 --- /dev/null +++ b/config/yugabyte/regression_pipelines/aggregate_workloads/yugabyte/ORDG4_impact_of_datatype_with_sec_ind.yaml @@ -0,0 +1,210 @@ +#TEST FOR YUGABYTE REGULAR TABLES +#GOAL3 Impact of datatype on Orderby clause +#TESTS: +#Impact of orderby clause on SecIND of bigint datatype +#Impact of orderby clause on SecIND of varchar datatype +#Impact of orderby clause on SecIND of uuid datatype +#Impact of orderby clause on SecIND of date datatype +type: YUGABYTE +driver: com.yugabyte.Driver +url: jdbc:yugabytedb://{{endpoint}}:5433/yugabyte?sslmode=require +username: {{username}} +password: {{password}} +batchsize: 128 +isolation: TRANSACTION_REPEATABLE_READ +loaderthreads: 1 +terminals: 1 +collect_pg_stat_statements: true +works: + work: + time_secs: 120 + active_terminals: 1 + rate: unlimited + warmup: 30 +microbenchmark: + class: com.oltpbenchmark.benchmarks.featurebench.customworkload.YBDefaultMicroBenchmark + properties: + setAutoCommit: true + create: + - DROP TABLE IF EXISTS indexedBigint1M_1; + - DROP TABLE IF EXISTS indexedVarchar1001M_1; + - DROP TABLE IF EXISTS indexedUuid1M_1; + - DROP TABLE IF EXISTS indexedDate1M_1; + - CREATE TABLE indexedBigint1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE indexedVarchar1001M_1(col_varchar100_pid_1 varchar(100), col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE indexedUuid1M_1(col_uuid_id_1 uuid, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_varchar10_id_1 varchar(10), col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE TABLE indexedDate1M_1(col_bigint_id_1 bigint, col_bigint_1 bigint, col_bigint_2 bigint, col_bigint_3 bigint, col_bigint_4 bigint, col_bigint_5 bigint, col_float2_1 float(2), col_float2_2 float(2), col_float5_1 float(5), col_float5_2 float(5), col_boolean_1 boolean, col_date_id_1 date, col_varchar100_id_1 varchar(100), col_varchar100_id_2 varchar(100), col_varchar500_id_1 varchar(500)); + - CREATE INDEX ON indexedBigint1M_1(col_bigint_id_1 ASC); + - CREATE INDEX ON indexedVarchar1001M_1(col_varchar100_pid_1 ASC); + - CREATE INDEX ON indexedUuid1M_1(col_uuid_id_1 ASC); + - CREATE INDEX ON indexedDate1M_1(col_date_id_1 ASC); + cleanup: + - DROP TABLE IF EXISTS indexedBigint1M_1; + - DROP TABLE IF EXISTS indexedVarchar1001M_1; + - DROP TABLE IF EXISTS indexedUuid1M_1; + - DROP TABLE IF EXISTS indexedDate1M_1; + loadRules: + - table: indexedBigint1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: indexedVarchar1001M_ + count: 1 + rows: 1000000 + columns: + - name: col_varchar100_pid_ + count: 1 + util: PrimaryStringGen + params: [1, 100] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: indexedUuid1M_ + count: 1 + rows: 1000000 + columns: + - name: col_uuid_id_ + count: 1 + util: RandomUUID + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_varchar10_id_ + count: 1 + util: PrimaryStringGen + params: [1, 10] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + - table: indexedDate1M_ + count: 1 + rows: 1000000 + columns: + - name: col_bigint_id_ + count: 1 + util: PrimaryIntGen + params: [ 1, 1000000 ] + - name: col_bigint_ + count: 5 + util: RandomNumber + params: [ 1, 1000000 ] + - name: col_float2_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 2 ] + - name: col_float5_ + count: 2 + util: RandomNoWithDecimalPoints + params: [ 1, 1000000, 5 ] + - name: col_boolean_ + count: 1 + util: RandomBoolean + - name: col_date_id_ + count: 1 + util: RandomDateBtwYears + params: [1900, 2022] + - name: col_varchar100_id_ + count: 2 + util: PrimaryStringGen + params: [1, 100] + - name: col_varchar500_id_ + count: 1 + util: PrimaryStringGen + params: [1, 500] + executeRules: + - workload: ORDG4_ordby_bigint_indexed_column + run: + - name: yb_ordby_bigint_indexed_column + weight: 100 + queries: + - query: select col_bigint_id_1 from indexedBigint1M_1 order by col_bigint_id_1 + - workload: ORDG4_ordby_varchar_indexed_column + run: + - name: yb_ordby_varchar_indexed_column + weight: 100 + queries: + - query: select indexedVarchar1001M_1 from indexedVarchar1001M_1 order by indexedVarchar1001M_1 + - workload: ORDG4_ordby_uuid_indexed_column + run: + - name: yb_ordby_uuid_indexed_column + weight: 100 + queries: + - query: select col_uuid_id_1 from indexedUuid1M_1 order by col_uuid_id_1 + - workload: ORDG4_ordby_date_indexed_column + run: + - name: yb_ordby_date_indexed_column + weight: 100 + queries: + - query: select col_date_id_1 from indexedDate1M_1 order by col_date_id_1 \ No newline at end of file