@@ -98,26 +98,32 @@ public static DistributedQueryRunner createQueryRunner(Iterable<TpchTable<?>> ta
98
98
return createQueryRunner (tables , ImmutableMap .of (), Optional .empty ());
99
99
}
100
100
101
+ public static DistributedQueryRunner createQueryRunner (Iterable <TpchTable <?>> tpchTables , Map <String , String > extraProperties , Map <String , String > tpcdsProperties )
102
+ throws Exception
103
+ {
104
+ return createQueryRunner (tpchTables , ImmutableList .of (), extraProperties , ImmutableMap .of (), "sql-standard" , ImmutableMap .of (), Optional .empty (), Optional .empty (), Optional .empty (), tpcdsProperties );
105
+ }
106
+
101
107
public static DistributedQueryRunner createQueryRunner (
102
108
Iterable <TpchTable <?>> tpchTables ,
103
109
Map <String , String > extraProperties ,
104
110
Map <String , String > extraCoordinatorProperties ,
105
111
Optional <Path > dataDirectory )
106
112
throws Exception
107
113
{
108
- return createQueryRunner (tpchTables , ImmutableList .of (), extraProperties , extraCoordinatorProperties , "sql-standard" , ImmutableMap .of (), Optional .empty (), dataDirectory , Optional .empty ());
114
+ return createQueryRunner (tpchTables , ImmutableList .of (), extraProperties , extraCoordinatorProperties , "sql-standard" , ImmutableMap .of (), Optional .empty (), dataDirectory , Optional .empty (), ImmutableMap . of () );
109
115
}
110
116
111
117
public static DistributedQueryRunner createQueryRunner (Iterable <TpchTable <?>> tpchTables , Map <String , String > extraProperties , Optional <Path > dataDirectory )
112
118
throws Exception
113
119
{
114
- return createQueryRunner (tpchTables , ImmutableList .of (), extraProperties , ImmutableMap .of (), "sql-standard" , ImmutableMap .of (), Optional .empty (), dataDirectory , Optional .empty ());
120
+ return createQueryRunner (tpchTables , ImmutableList .of (), extraProperties , ImmutableMap .of (), "sql-standard" , ImmutableMap .of (), Optional .empty (), dataDirectory , Optional .empty (), ImmutableMap . of () );
115
121
}
116
122
117
123
public static DistributedQueryRunner createQueryRunner (Iterable <TpchTable <?>> tpchTables , List <String > tpcdsTableNames , Map <String , String > extraProperties , Optional <Path > dataDirectory )
118
124
throws Exception
119
125
{
120
- return createQueryRunner (tpchTables , tpcdsTableNames , extraProperties , ImmutableMap .of (), "sql-standard" , ImmutableMap .of (), Optional .empty (), dataDirectory , Optional .empty ());
126
+ return createQueryRunner (tpchTables , tpcdsTableNames , extraProperties , ImmutableMap .of (), "sql-standard" , ImmutableMap .of (), Optional .empty (), dataDirectory , Optional .empty (), ImmutableMap . of () );
121
127
}
122
128
123
129
public static DistributedQueryRunner createQueryRunner (
@@ -128,7 +134,19 @@ public static DistributedQueryRunner createQueryRunner(
128
134
Optional <Path > dataDirectory )
129
135
throws Exception
130
136
{
131
- return createQueryRunner (tpchTables , ImmutableList .of (), extraProperties , ImmutableMap .of (), security , extraHiveProperties , Optional .empty (), dataDirectory , Optional .empty ());
137
+ return createQueryRunner (tpchTables , ImmutableList .of (), extraProperties , ImmutableMap .of (), security , extraHiveProperties , Optional .empty (), dataDirectory , Optional .empty (), ImmutableMap .of ());
138
+ }
139
+
140
+ public static DistributedQueryRunner createQueryRunner (
141
+ Iterable <TpchTable <?>> tpchTables ,
142
+ Map <String , String > extraProperties ,
143
+ String security ,
144
+ Map <String , String > extraHiveProperties ,
145
+ Optional <Path > dataDirectory ,
146
+ Map <String , String > tpcdsProperties )
147
+ throws Exception
148
+ {
149
+ return createQueryRunner (tpchTables , ImmutableList .of (), extraProperties , ImmutableMap .of (), security , extraHiveProperties , Optional .empty (), dataDirectory , Optional .empty (), tpcdsProperties );
132
150
}
133
151
134
152
public static DistributedQueryRunner createQueryRunner (
@@ -140,10 +158,11 @@ public static DistributedQueryRunner createQueryRunner(
140
158
Map <String , String > extraHiveProperties ,
141
159
Optional <Integer > workerCount ,
142
160
Optional <Path > dataDirectory ,
143
- Optional <BiFunction <Integer , URI , Process >> externalWorkerLauncher )
161
+ Optional <BiFunction <Integer , URI , Process >> externalWorkerLauncher ,
162
+ Map <String , String > tpcdsProperties )
144
163
throws Exception
145
164
{
146
- return createQueryRunner (tpchTables , tpcdsTableNames , extraProperties , extraCoordinatorProperties , security , extraHiveProperties , workerCount , dataDirectory , externalWorkerLauncher , Optional .empty ());
165
+ return createQueryRunner (tpchTables , tpcdsTableNames , extraProperties , extraCoordinatorProperties , security , extraHiveProperties , workerCount , dataDirectory , externalWorkerLauncher , Optional .empty (), tpcdsProperties );
147
166
}
148
167
149
168
public static DistributedQueryRunner createQueryRunner (
@@ -156,7 +175,8 @@ public static DistributedQueryRunner createQueryRunner(
156
175
Optional <Integer > workerCount ,
157
176
Optional <Path > dataDirectory ,
158
177
Optional <BiFunction <Integer , URI , Process >> externalWorkerLauncher ,
159
- Optional <ExtendedHiveMetastore > externalMetastore )
178
+ Optional <ExtendedHiveMetastore > externalMetastore ,
179
+ Map <String , String > tpcdsProperties )
160
180
throws Exception
161
181
{
162
182
return createQueryRunner (
@@ -170,7 +190,8 @@ public static DistributedQueryRunner createQueryRunner(
170
190
dataDirectory ,
171
191
externalWorkerLauncher ,
172
192
externalMetastore ,
173
- false );
193
+ false ,
194
+ tpcdsProperties );
174
195
}
175
196
176
197
public static DistributedQueryRunner createQueryRunner (
@@ -184,7 +205,8 @@ public static DistributedQueryRunner createQueryRunner(
184
205
Optional <Path > dataDirectory ,
185
206
Optional <BiFunction <Integer , URI , Process >> externalWorkerLauncher ,
186
207
Optional <ExtendedHiveMetastore > externalMetastore ,
187
- boolean addJmxPlugin )
208
+ boolean addJmxPlugin ,
209
+ Map <String , String > tpcdsProperties )
188
210
throws Exception
189
211
{
190
212
assertEquals (DateTimeZone .getDefault (), TIME_ZONE , "Timezone not configured correctly. Add -Duser.timezone=America/Bahia_Banderas to your JVM arguments" );
@@ -211,7 +233,7 @@ public static DistributedQueryRunner createQueryRunner(
211
233
queryRunner .installPlugin (new TpcdsPlugin ());
212
234
queryRunner .installPlugin (new TestingHiveEventListenerPlugin ());
213
235
queryRunner .createCatalog ("tpch" , "tpch" );
214
- queryRunner .createCatalog ("tpcds" , "tpcds" );
236
+ queryRunner .createCatalog ("tpcds" , "tpcds" , tpcdsProperties );
215
237
Map <String , String > tpchProperties = ImmutableMap .<String , String >builder ()
216
238
.put ("tpch.column-naming" , "standard" )
217
239
.build ();
@@ -326,7 +348,8 @@ public static DistributedQueryRunner createMaterializingQueryRunner(Iterable<Tpc
326
348
"grouped-execution-enabled" , "true" ),
327
349
"sql-standard" ,
328
350
ImmutableMap .of ("hive.create-empty-bucket-files-for-temporary-table" , "false" ),
329
- Optional .empty ());
351
+ Optional .empty (),
352
+ ImmutableMap .of ());
330
353
}
331
354
332
355
public static DistributedQueryRunner createMaterializingAndSpillingQueryRunner (Iterable <TpchTable <?>> tables )
0 commit comments