File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,27 @@ def test_s3_select(benchmark_time):
23
23
assert timer .elapsed_time < benchmark_time
24
24
25
25
26
+ @pytest .mark .parametrize ("benchmark_time" , [120 ])
27
+ def test_s3_read_parquet_simple (benchmark_time ):
28
+
29
+ path = "s3://ursa-labs-taxi-data/2018/"
30
+ with ExecutionTimer ("elapsed time of wr.s3.read_parquet() simple" ) as timer :
31
+ wr .s3 .read_parquet (path = path , parallelism = 10000 )
32
+
33
+ assert timer .elapsed_time < benchmark_time
34
+
35
+
36
+ @pytest .mark .parametrize ("benchmark_time" , [120 ])
37
+ def test_s3_read_parquet_partition_filter (benchmark_time ):
38
+
39
+ path = "s3://amazon-reviews-pds/parquet/"
40
+ with ExecutionTimer ("elapsed time of wr.s3.read_parquet() partition filter" ) as timer :
41
+ filter = lambda x : True if x ["product_category" ].startswith ("Wireless" ) else False
42
+ wr .s3 .read_parquet (path = path , parallelism = 10000 , partition_filter = filter , dataset = True )
43
+
44
+ assert timer .elapsed_time < benchmark_time
45
+
46
+
26
47
@pytest .mark .parametrize ("benchmark_time" , [5 ])
27
48
def test_s3_delete_objects (path , path2 , benchmark_time ):
28
49
df = pd .DataFrame ({"id" : [1 , 2 , 3 ]})
You can’t perform that action at this time.
0 commit comments