File tree 1 file changed +32
-0
lines changed 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,12 @@ Available commands inside DataFusion CLI are:
252
252
253
253
` ` `
254
254
255
+ - Set configuration options
256
+
257
+ ` ` ` SQL
258
+ > SET datafusion.execution.batch_size to 1024;
259
+ ` ` `
260
+
255
261
# # Changing Configuration Options
256
262
257
263
All available configuration options can be seen using ` SHOW ALL` as described above.
@@ -282,3 +288,29 @@ DataFusion CLI v12.0.0
282
288
+-------------------------------------------------+---------+
283
289
8 rows in set. Query took 0.002 seconds.
284
290
` ` `
291
+
292
+ You can change the configuration options using ` SET` statement as well
293
+
294
+ ` ` ` shell
295
+ $ datafusion-cli
296
+ DataFusion CLI v13.0.0
297
+
298
+ ❯ show datafusion.execution.batch_size;
299
+ +---------------------------------+---------+
300
+ | name | setting |
301
+ +---------------------------------+---------+
302
+ | datafusion.execution.batch_size | 8192 |
303
+ +---------------------------------+---------+
304
+ 1 row in set. Query took 0.011 seconds.
305
+
306
+ ❯ set datafusion.execution.batch_size to 1024;
307
+ 0 rows in set. Query took 0.000 seconds.
308
+
309
+ ❯ show datafusion.execution.batch_size;
310
+ +---------------------------------+---------+
311
+ | name | setting |
312
+ +---------------------------------+---------+
313
+ | datafusion.execution.batch_size | 1024 |
314
+ +---------------------------------+---------+
315
+ 1 row in set. Query took 0.005 seconds.
316
+ ` ` `
You can’t perform that action at this time.
0 commit comments