Commit 7f28533 1 parent 03e351f commit 7f28533 Copy full SHA for 7f28533
File tree 3 files changed +16
-0
lines changed
3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -45,4 +45,5 @@ default = []
45
45
hdfs = [" ballista-core/hdfs" ]
46
46
hdfs3 = [" ballista-core/hdfs3" ]
47
47
s3 = [" ballista-core/s3" ]
48
+ azure = [" ballista-core/azure" ]
48
49
standalone = [" ballista-executor" , " ballista-scheduler" ]
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ force_hash_collisions = ["datafusion/force_hash_collisions"]
40
40
hdfs = [" datafusion-objectstore-hdfs/hdfs" ]
41
41
hdfs3 = [" datafusion-objectstore-hdfs/hdfs3" ]
42
42
s3 = [" object_store/aws" ]
43
+ azure = [" object_store/azure" ]
43
44
simd = [" datafusion/simd" ]
44
45
45
46
[dependencies ]
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ use futures::StreamExt;
52
52
use log:: error;
53
53
#[ cfg( feature = "s3" ) ]
54
54
use object_store:: aws:: AmazonS3Builder ;
55
+ #[ cfg( feature = "azure" ) ]
56
+ use object_store:: azure:: MicrosoftAzureBuilder ;
55
57
use object_store:: ObjectStore ;
56
58
use std:: io:: { BufWriter , Write } ;
57
59
use std:: marker:: PhantomData ;
@@ -120,6 +122,18 @@ impl ObjectStoreProvider for FeatureBasedObjectStoreProvider {
120
122
}
121
123
}
122
124
125
+ #[ cfg( feature = "azure" ) ]
126
+ {
127
+ if url. to_string ( ) . starts_with ( "azure://" ) {
128
+ if let Some ( bucket_name) = url. host_str ( ) {
129
+ let store = MicrosoftAzureBuilder :: from_env ( )
130
+ . with_container_name ( bucket_name)
131
+ . build ( ) ?;
132
+ return Ok ( Arc :: new ( store) ) ;
133
+ }
134
+ }
135
+ }
136
+
123
137
Err ( DataFusionError :: Execution ( format ! (
124
138
"No object store available for {}" ,
125
139
url
You can’t perform that action at this time.
0 commit comments