@@ -4,7 +4,7 @@ use crate::{
44 catalog:: {
55 DefaultCatalog , FunctionCatalog , TableCatalog , DEFAULT_DB , DEFAULT_SCHEMA ,
66 } ,
7- context:: DefaultSeafowlContext ,
7+ context:: SeafowlContext ,
88 repository:: { interface:: Repository , sqlite:: SqliteRepository } ,
99} ;
1010use datafusion:: execution:: context:: SessionState ;
@@ -151,7 +151,7 @@ pub fn build_state_with_table_factories(
151151 state
152152}
153153
154- pub async fn build_context ( cfg : & schema:: SeafowlConfig ) -> Result < DefaultSeafowlContext > {
154+ pub async fn build_context ( cfg : & schema:: SeafowlConfig ) -> Result < SeafowlContext > {
155155 let mut runtime_config = RuntimeConfig :: new ( ) ;
156156 if let Some ( max_memory) = cfg. runtime . max_memory {
157157 runtime_config = runtime_config
@@ -203,7 +203,7 @@ pub async fn build_context(cfg: &schema::SeafowlConfig) -> Result<DefaultSeafowl
203203 // the user is connected to), but in this case we can just use the same context everywhere
204204 // (it will reload its schema before running the query)
205205
206- Ok ( DefaultSeafowlContext {
206+ Ok ( SeafowlContext {
207207 inner : context,
208208 table_catalog : tables,
209209 function_catalog : functions,
@@ -217,7 +217,6 @@ pub async fn build_context(cfg: &schema::SeafowlConfig) -> Result<DefaultSeafowl
217217
218218#[ cfg( test) ]
219219mod tests {
220- use crate :: context:: SeafowlContext ;
221220 use sqlx:: sqlite:: SqliteJournalMode ;
222221
223222 use super :: * ;
0 commit comments