File tree 4 files changed +10
-7
lines changed
4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 11
11
"native_buffer_mem_cap_gb" : 32 ,
12
12
"native_query_mem_percent_of_sys_mem" : 0.95 ,
13
13
"join_max_bcast_size_percent_of_container_mem" : 0.01 ,
14
- "memory_push_back_start_below_limit_gb" : 5
14
+ "memory_push_back_start_below_limit_gb" : 5 ,
15
+ "trino" : " ${PROVISION_TRINO}"
15
16
}
Original file line number Diff line number Diff line change 1
1
connector.name =tpcds
2
+ {{ if not (eq .GeneratorParameters.Trino " true" ) -}}
2
3
tpcds.use-varchar-type =true
4
+ {{ end -}}
Original file line number Diff line number Diff line change 6
6
"io/fs"
7
7
"os"
8
8
"path/filepath"
9
- cluster_configs "pbench/clusters"
9
+ "pbench/clusters"
10
10
"pbench/log"
11
11
12
12
"github.com/spf13/cobra"
@@ -38,7 +38,7 @@ func Run(_ *cobra.Command, args []string) {
38
38
}
39
39
}
40
40
if TemplatePath == "" {
41
- TemplateFS = cluster_configs .BuiltinTemplate
41
+ TemplateFS = clusters .BuiltinTemplate
42
42
TemplatePath = "templates"
43
43
} else {
44
44
TemplateFS = os .DirFS (TemplatePath )
@@ -77,5 +77,5 @@ func Run(_ *cobra.Command, args []string) {
77
77
}
78
78
79
79
func PrintDefaultParams (_ * cobra.Command , _ []string ) {
80
- fmt .Print (string (cluster_configs .BuiltinGeneratorParametersBytes ))
80
+ fmt .Print (string (clusters .BuiltinGeneratorParametersBytes ))
81
81
}
Original file line number Diff line number Diff line change 1
1
package genconfig
2
2
3
3
import (
4
- _ "embed"
5
4
"encoding/json"
6
- cluster_configs "pbench/clusters"
5
+ "pbench/clusters"
7
6
)
8
7
9
8
type GeneratorParameters struct {
@@ -21,12 +20,13 @@ type GeneratorParameters struct {
21
20
NativeQueryMemPercentOfSysMem float64 `json:"native_query_mem_percent_of_sys_mem"`
22
21
JoinMaxBcastSizePercentOfContainerMem float64 `json:"join_max_bcast_size_percent_of_container_mem"`
23
22
MemoryPushBackStartBelowLimitGb uint `json:"memory_push_back_start_below_limit_gb"`
23
+ Trino string `json:"trino,omitempty"`
24
24
}
25
25
26
26
var DefaultGeneratorParameters = & GeneratorParameters {}
27
27
28
28
func init () {
29
- if err := json .Unmarshal (cluster_configs .BuiltinGeneratorParametersBytes , DefaultGeneratorParameters ); err != nil {
29
+ if err := json .Unmarshal (clusters .BuiltinGeneratorParametersBytes , DefaultGeneratorParameters ); err != nil {
30
30
panic (err )
31
31
}
32
32
}
You can’t perform that action at this time.
0 commit comments