This is an automated email from the ASF dual-hosted git repository.
jonah pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new c62ab39a10 allow http in datafusion-cli http object store (#13626)
c62ab39a10 is described below
commit c62ab39a10eb50b4ed668b322d670660a82636f2
Author: Adrian Garcia Badaracco <[email protected]>
AuthorDate: Tue Dec 3 20:56:10 2024 -0800
allow http in datafusion-cli http object store (#13626)
* allow http in datafusion-cli http object store
* fix
* remove http2
---
datafusion-cli/src/object_storage.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/datafusion-cli/src/object_storage.rs
b/datafusion-cli/src/object_storage.rs
index 3d999766e0..de66b60fe4 100644
--- a/datafusion-cli/src/object_storage.rs
+++ b/datafusion-cli/src/object_storage.rs
@@ -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(
@@ -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()?,
),
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]