Skip to content

Commit

Permalink
Fix cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
zanmato1984 committed Aug 14, 2024
1 parent 36c3915 commit af91e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/go-tpc/tpch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit af91e1d

Please sign in to comment.