From c62ab39a10eb50b4ed668b322d670660a82636f2 Mon Sep 17 00:00:00 2001 From: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> Date: Tue, 3 Dec 2024 20:56:10 -0800 Subject: [PATCH] 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 3d999766e03f..de66b60fe449 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()?, ),