@@ -177,20 +177,20 @@ SessionProperties::SessionProperties() {
177
177
std::to_string (c.rowNumberSpillEnabled ()));
178
178
179
179
addSessionProperty (
180
- kNativeSpillerNumPartitionBits ,
180
+ kSpillerNumPartitionBits ,
181
181
" none" ,
182
182
TINYINT (),
183
183
false ,
184
184
QueryConfig::kSpillNumPartitionBits ,
185
- std::to_string (c.spillNumPartitionBits ())),
185
+ std::to_string (c.spillNumPartitionBits ()));
186
186
187
- addSessionProperty (
188
- kTopNRowNumberSpillEnabled ,
189
- " Native Execution only. Enable topN row number spilling on native engine" ,
190
- BOOLEAN (),
191
- false ,
192
- QueryConfig::kTopNRowNumberSpillEnabled ,
193
- boolToString (c.topNRowNumberSpillEnabled ()));
187
+ addSessionProperty (
188
+ kTopNRowNumberSpillEnabled ,
189
+ " Native Execution only. Enable topN row number spilling on native engine" ,
190
+ BOOLEAN (),
191
+ false ,
192
+ QueryConfig::kTopNRowNumberSpillEnabled ,
193
+ boolToString (c.topNRowNumberSpillEnabled ()));
194
194
195
195
addSessionProperty (
196
196
kValidateOutputFromOperators ,
@@ -254,6 +254,48 @@ SessionProperties::SessionProperties() {
254
254
QueryConfig::kSelectiveNimbleReaderEnabled ,
255
255
boolToString (c.selectiveNimbleReaderEnabled ()));
256
256
257
+ addSessionProperty (
258
+ kQueryTraceEnabled ,
259
+ " Enables query tracing." ,
260
+ BOOLEAN (),
261
+ false ,
262
+ QueryConfig::kQueryTraceEnabled ,
263
+ boolToString (c.queryTraceEnabled ()));
264
+
265
+ addSessionProperty (
266
+ kQueryTraceDir ,
267
+ " Base dir of a query to store tracing data." ,
268
+ VARCHAR (),
269
+ false ,
270
+ QueryConfig::kQueryTraceDir ,
271
+ c.queryTraceDir ());
272
+
273
+ addSessionProperty (
274
+ kQueryTraceNodeIds ,
275
+ " A comma-separated list of plan node ids whose input data will be traced."
276
+ " Empty string if only want to trace the query metadata." ,
277
+ VARCHAR (),
278
+ false ,
279
+ QueryConfig::kQueryTraceNodeIds ,
280
+ c.queryTraceNodeIds ());
281
+
282
+ addSessionProperty (
283
+ kQueryTraceMaxBytes ,
284
+ " The max trace bytes limit. Tracing is disabled if zero." ,
285
+ BIGINT (),
286
+ false ,
287
+ QueryConfig::kQueryTraceMaxBytes ,
288
+ std::to_string (c.queryTraceMaxBytes ()));
289
+
290
+ addSessionProperty (
291
+ kQueryTraceTaskRegExp ,
292
+ " The regexp of traced task id. We only enable trace on a task if its id"
293
+ " matches." ,
294
+ BIGINT (),
295
+ false ,
296
+ QueryConfig::kQueryTraceTaskRegExp ,
297
+ c.queryTraceTaskRegExp ());
298
+
257
299
// If `legacy_timestamp` is true, the coordinator expects timestamp
258
300
// conversions without a timezone to be converted to the user's
259
301
// session_timezone.
0 commit comments