File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed 
src/sql/sql_provider_datafusion Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use datafusion::{
1818} ; 
1919use  futures:: TryStreamExt ; 
2020use  snafu:: prelude:: * ; 
21- use  std:: fmt:: Display ; 
21+ use  std:: fmt:: { Display ,   Formatter } ; 
2222use  std:: { any:: Any ,  fmt,  sync:: Arc } ; 
2323
2424use  datafusion:: { 
@@ -91,6 +91,17 @@ pub struct SqlTable<T: 'static, P: 'static> {
9191    engine :  Engine , 
9292} 
9393
94+ impl < T ,  P >  fmt:: Debug  for  SqlTable < T ,  P >  { 
95+     fn  fmt ( & self ,  f :  & mut  Formatter < ' _ > )  -> fmt:: Result  { 
96+         f. debug_struct ( "SqlTable" ) 
97+             . field ( "name" ,  & self . name ) 
98+             . field ( "schema" ,  & self . schema ) 
99+             . field ( "table_reference" ,  & self . table_reference ) 
100+             . field ( "engine" ,  & self . engine ) 
101+             . finish ( ) 
102+     } 
103+ } 
104+ 
94105impl < T ,  P >  SqlTable < T ,  P >  { 
95106    pub  async  fn  new ( 
96107        name :  & ' static  str , 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments