Skip to content

Commit

Permalink
fix: add missing feature
Browse files Browse the repository at this point in the history
  • Loading branch information
tshauck committed Sep 3, 2024
1 parent 5ced661 commit f11c77e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exon/exon-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ noodles = { workspace = true, features = [
"gtf",
] }
num_cpus = "1.16.0"
object_store = { workspace = true, features = ["aws"] }
object_store = { workspace = true, features = ["aws", "gcp"] }
pin-project = { version = "1.1.5", optional = true }
tokio = { workspace = true, features = ["rt-multi-thread"] }
tokio-util = { workspace = true }
Expand Down
3 changes: 1 addition & 2 deletions exon/exon-core/src/runtime_env/exon_runtime_env_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use std::sync::Arc;

use async_trait::async_trait;
use datafusion::{error::DataFusionError, execution::runtime_env::RuntimeEnv};
use object_store::gcp::GoogleCloudStorageBuilder;
use object_store::ObjectStore;

use exon_io::build_s3_object_store;
Expand Down Expand Up @@ -70,8 +71,6 @@ impl ExonRuntimeEnvExt for Arc<RuntimeEnv> {
match url.scheme() {
"s3" => self.register_s3_object_store(url).await,
"gs" => {
use object_store::gcp::GoogleCloudStorageBuilder;

// Check that the GOOGLE_SERVICE_ACCOUNT env var is set
if std::env::var("GOOGLE_SERVICE_ACCOUNT").is_err() {
return Err(DataFusionError::Execution(
Expand Down

0 comments on commit f11c77e

Please sign in to comment.