Skip to content

Commit

Permalink
revert: changes for gcs introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
timvw committed Mar 27, 2024
1 parent e89ed27 commit 7cf8129
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mod object_store_util;
use crate::args::Args;

use object_store_opendal::OpendalStore;
use opendal::services::{Gcs, S3};
use opendal::services::S3;
use opendal::Operator;
use url::Url;

Expand All @@ -36,15 +36,6 @@ fn init_s3_operator_via_builder(url: &Url) -> Result<Operator> {
Ok(op)
}

fn init_gcs_operator_via_builder(url: &Url) -> Result<Operator> {
let mut builder = Gcs::default();

let op = Operator::new(builder)
.map_err(|e| DataFusionError::Execution(format!("Failed to build operator: {e}")))?
.finish();
Ok(op)
}

#[tokio::main]
async fn main() -> Result<()> {
let config = SessionConfig::new().with_information_schema(true);
Expand Down

0 comments on commit 7cf8129

Please sign in to comment.