Skip to content

Commit 934a69e

Browse files
authored
[TPCH] Polars turn off streaming (#1512)
1 parent 00e398a commit 934a69e

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

tests/tpch/test_polars.py

+22-22
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _():
5858
],
5959
)
6060
.sort(["l_returnflag", "l_linestatus"])
61-
).collect(streaming=True)
61+
).collect()
6262

6363
run(_)
6464

@@ -111,7 +111,7 @@ def _():
111111
)
112112
.limit(100)
113113
.with_columns(pl.col(pl.datatypes.Utf8).str.strip_chars().keep_name())
114-
).collect(streaming=True)
114+
).collect()
115115

116116
run(_)
117117

@@ -148,7 +148,7 @@ def _():
148148
)
149149
.sort(by=["revenue", "o_orderdate"], descending=[True, False])
150150
.limit(10)
151-
).collect(streaming=True)
151+
).collect()
152152

153153
run(_)
154154

@@ -170,7 +170,7 @@ def _():
170170
.agg(pl.len().alias("order_count"))
171171
.sort(by="o_orderpriority")
172172
.with_columns(pl.col("order_count").cast(pl.datatypes.Int64))
173-
).collect(streaming=True)
173+
).collect()
174174

175175
run(_)
176176

@@ -208,7 +208,7 @@ def _():
208208
.group_by("n_name")
209209
.agg([pl.sum("revenue")])
210210
.sort(by="revenue", descending=True)
211-
).collect(streaming=True)
211+
).collect()
212212

213213
run(_)
214214

@@ -231,7 +231,7 @@ def _():
231231
(pl.col("l_extendedprice") * pl.col("l_discount")).alias("revenue")
232232
)
233233
.select(pl.sum("revenue").alias("revenue"))
234-
).collect(streaming=True)
234+
).collect()
235235

236236
run(_)
237237

@@ -280,7 +280,7 @@ def _():
280280
.group_by(["supp_nation", "cust_nation", "l_year"])
281281
.agg([pl.sum("volume").alias("revenue")])
282282
.sort(by=["supp_nation", "cust_nation", "l_year"])
283-
).collect(streaming=True)
283+
).collect()
284284

285285
run(_)
286286

@@ -332,7 +332,7 @@ def _():
332332
.agg((pl.sum("_tmp") / pl.sum("volume")).round(2).alias("mkt_share"))
333333
.sort("o_year")
334334
)
335-
q_final.collect(streaming=True)
335+
q_final.collect()
336336

337337
run(_)
338338

@@ -371,7 +371,7 @@ def _():
371371
.agg(pl.sum("amount").round(2).alias("sum_profit"))
372372
.sort(by=["nation", "o_year"], descending=[False, True])
373373
)
374-
q_final.collect(streaming=True)
374+
q_final.collect()
375375

376376
run(_)
377377

@@ -430,7 +430,7 @@ def _():
430430
.sort(by="revenue", descending=True)
431431
.limit(20)
432432
)
433-
q_final.collect(streaming=True)
433+
q_final.collect()
434434

435435
run(_)
436436

@@ -471,7 +471,7 @@ def _():
471471
.select(["ps_partkey", "value"])
472472
.sort("value", descending=True)
473473
)
474-
q_final.collect(streaming=True)
474+
q_final.collect()
475475

476476
run(_)
477477

@@ -510,7 +510,7 @@ def _():
510510
.agg([pl.col("high_line_count").sum(), pl.col("low_line_count").sum()])
511511
.sort("l_shipmode")
512512
)
513-
q_final.collect(streaming=True)
513+
q_final.collect()
514514

515515
run(_)
516516

@@ -535,7 +535,7 @@ def _():
535535
.select([pl.col("c_count"), pl.col("len").alias("custdist")])
536536
.sort(["custdist", "c_count"], descending=[True, True])
537537
)
538-
q_final.collect(streaming=True)
538+
q_final.collect()
539539

540540
run(_)
541541

@@ -564,7 +564,7 @@ def _():
564564
.alias("promo_revenue")
565565
)
566566
)
567-
q_final.collect(streaming=True)
567+
q_final.collect()
568568

569569
run(_)
570570

@@ -597,7 +597,7 @@ def _():
597597
.select(["s_suppkey", "s_name", "s_address", "s_phone", "total_revenue"])
598598
.sort("s_suppkey")
599599
)
600-
q_final.collect(streaming=True)
600+
q_final.collect()
601601

602602
run(_)
603603

@@ -628,7 +628,7 @@ def _():
628628
descending=[True, False, False, False],
629629
)
630630
)
631-
q_final.collect(streaming=True)
631+
q_final.collect()
632632

633633
run(_)
634634

@@ -657,7 +657,7 @@ def _():
657657
(pl.col("l_extendedprice").sum() / 7.0).round(2).alias("avg_yearly")
658658
)
659659
)
660-
q_final.collect(streaming=True)
660+
q_final.collect()
661661

662662
run(_)
663663

@@ -693,7 +693,7 @@ def _():
693693
.sort(["o_totalprice", "o_orderdat"], descending=[True, False])
694694
.limit(100)
695695
)
696-
q_final.collect(streaming=True)
696+
q_final.collect()
697697

698698
run(_)
699699

@@ -740,7 +740,7 @@ def _():
740740
.alias("revenue")
741741
)
742742
)
743-
q_final.collect(streaming=True)
743+
q_final.collect()
744744

745745
run(_)
746746

@@ -784,7 +784,7 @@ def _():
784784
.select(["s_name", "s_address"])
785785
.sort("s_name")
786786
)
787-
q_final.collect(streaming=True)
787+
q_final.collect()
788788

789789
run(_)
790790

@@ -823,7 +823,7 @@ def _():
823823
.sort(by=["numwait", "s_name"], descending=[True, False])
824824
.limit(100)
825825
)
826-
q_final.collect(streaming=True)
826+
q_final.collect()
827827

828828
run(_)
829829

@@ -866,6 +866,6 @@ def _():
866866
)
867867
.sort("cntrycode")
868868
)
869-
q_final.collect(streaming=True)
869+
q_final.collect()
870870

871871
run(_)

0 commit comments

Comments
 (0)