cockroach: github.com/cockroachdb/cockroach/pkg/workload/tpch Index | Files

package tpch

import "github.com/cockroachdb/cockroach/pkg/workload/tpch"

Index

Package Files

expected_rows.go generate.go queries.go random.go tpch.go

Constants

const TPCHWrongOutputErrorPrefix = "TPCH wrong output "

TPCHWrongOutputErrorPrefix is the string that all errors about the wrong output will be prefixed with.

Variables

var (
    // QueriesByNumber is a mapping from the number of a TPC-H query to the actual
    // query.
    QueriesByNumber = map[int]string{
        1:  query1,
        2:  query2,
        3:  query3,
        4:  query4,
        5:  query5,
        6:  query6,
        7:  query7,
        8:  query8,
        9:  query9,
        10: query10,
        11: query11,
        12: query12,
        13: query13,
        14: query14,
        15: query15,
        16: query16,
        17: query17,
        18: query18,
        19: query19,
        20: query20,
        21: query21,
        22: query22,
    }

    // NumQueries specifies the number of queries in TPC-H benchmark.
    NumQueries = len(QueriesByNumber)
)

func FromScaleFactor Uses

func FromScaleFactor(scaleFactor int) workload.Generator

FromScaleFactor returns a tpch generator pre-configured with the specified scale factor.

Package tpch imports 22 packages (graph) and is imported by 13 packages. Updated 2020-08-13. Refresh now. Tools for package owners.