Skip to content

Commit

Permalink
allow http in datafusion-cli http object store (apache#13626)
Browse files Browse the repository at this point in the history
* allow http in datafusion-cli http object store

* fix

* remove http2
  • Loading branch information
adriangb authored Dec 4, 2024
1 parent acc9f41 commit c62ab39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datafusion-cli/src/object_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use aws_credential_types::provider::ProvideCredentials;
use object_store::aws::{AmazonS3Builder, AwsCredential};
use object_store::gcp::GoogleCloudStorageBuilder;
use object_store::http::HttpBuilder;
use object_store::{CredentialProvider, ObjectStore};
use object_store::{ClientOptions, CredentialProvider, ObjectStore};
use url::Url;

pub async fn get_s3_object_store_builder(
Expand Down Expand Up @@ -437,6 +437,7 @@ pub(crate) async fn get_object_store(
}
"http" | "https" => Arc::new(
HttpBuilder::new()
.with_client_options(ClientOptions::new().with_allow_http(true))
.with_url(url.origin().ascii_serialization())
.build()?,
),
Expand Down

0 comments on commit c62ab39

Please sign in to comment.