From af91e1ddb457a6dc8d476f5c66657732d9734ab5 Mon Sep 17 00:00:00 2001 From: Ruoxi Sun Date: Wed, 14 Aug 2024 17:38:44 +0800 Subject: [PATCH] Fix cmd --- cmd/go-tpc/tpch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/go-tpc/tpch.go b/cmd/go-tpc/tpch.go index aa6c738..256e2a4 100644 --- a/cmd/go-tpc/tpch.go +++ b/cmd/go-tpc/tpch.go @@ -131,11 +131,11 @@ func registerTpch(root *cobra.Command) { "", "Name of plan Replayer file dumps") - cmdPrepare.PersistentFlags().BoolVar(&tpchConfig.QueryTuningConfig.Enable, + cmdRun.PersistentFlags().BoolVar(&tpchConfig.QueryTuningConfig.Enable, "enable-query-tuning", true, "Enable query tuning by setting specified session variables") - cmdPrepare.PersistentFlags().StringVar(&tpchConfig.QueryTuningConfig.VarsRaw, + cmdRun.PersistentFlags().StringVar(&tpchConfig.QueryTuningConfig.VarsRaw, "query-tuning-vars", "tidb_default_string_match_selectivity=0.1;tidb_opt_join_reorder_threshold=60;tidb_prefer_broadcast_join_by_exchange_data_size=ON", "Specify a sequence of session variables to set before executing each query, in the form of 'name=value', separated by semicolon. Defaulted to some variables known effective for tpch queries.")