Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
comphead committed Jan 31, 2025
1 parent 26e7769 commit b6c3d2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions native/core/src/parquet/parquet_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1869,7 +1869,7 @@ pub(crate) fn register_object_store(
session_context: Arc<SessionContext>,
) -> Result<ObjectStoreUrl, ExecutionError> {
let object_store = object_store::local::LocalFileSystem::new();
let url = ObjectStoreUrl::parse("file://").unwrap();
let url = ObjectStoreUrl::parse("file://")?;
session_context
.runtime_env()
.register_object_store(url.as_ref(), Arc::new(object_store));
Expand All @@ -1884,7 +1884,7 @@ pub(crate) fn register_object_store(
// TODO: read the namenode configuration from file schema or from spark.defaultFS
let url = ObjectStoreUrl::parse("hdfs://namenode:9000")?;
if let Some(object_store) =
datafusion_objectstore_hdfs::object_store::hdfs::HadoopFileSystem::new((&url).as_ref())
datafusion_objectstore_hdfs::object_store::hdfs::HadoopFileSystem::new(url.as_ref())
{
session_context
.runtime_env()
Expand Down

0 comments on commit b6c3d2b

Please sign in to comment.