diff --git a/datafusion-postgres/src/handlers.rs b/datafusion-postgres/src/handlers.rs index 634fe79..5845b5b 100644 --- a/datafusion-postgres/src/handlers.rs +++ b/datafusion-postgres/src/handlers.rs @@ -62,8 +62,10 @@ pub struct DfSessionService { } impl DfSessionService { - pub fn new(session_context: SessionContext, catalog_name: Option) -> DfSessionService { - let session_context = Arc::new(session_context); + pub fn new( + session_context: Arc, + catalog_name: Option, + ) -> DfSessionService { let parser = Arc::new(Parser { session_context: session_context.clone(), });