@@ -8,7 +8,6 @@ use datafusion::execution::options::{
88use datafusion:: prelude:: { SessionConfig , SessionContext } ;
99use datafusion_postgres:: pg_catalog:: setup_pg_catalog;
1010use datafusion_postgres:: { serve, ServerOptions } ; // Assuming the crate name is `datafusion_postgres`
11- use log:: info;
1211use structopt:: StructOpt ;
1312
1413#[ derive( Debug , StructOpt ) ]
@@ -130,7 +129,7 @@ async fn setup_session_context(
130129 . register_csv ( table_name, table_path, CsvReadOptions :: default ( ) )
131130 . await
132131 . map_err ( |e| format ! ( "Failed to register CSV table '{table_name}': {e}" ) ) ?;
133- info ! ( "Loaded {table_path} as table {table_name}" ) ;
132+ println ! ( "Loaded {table_path} as table {table_name}" ) ;
134133 }
135134
136135 // Register JSON tables
@@ -139,7 +138,7 @@ async fn setup_session_context(
139138 . register_json ( table_name, table_path, NdJsonReadOptions :: default ( ) )
140139 . await
141140 . map_err ( |e| format ! ( "Failed to register JSON table '{table_name}': {e}" ) ) ?;
142- info ! ( "Loaded {table_path} as table {table_name}" ) ;
141+ println ! ( "Loaded {table_path} as table {table_name}" ) ;
143142 }
144143
145144 // Register Arrow tables
@@ -152,7 +151,7 @@ async fn setup_session_context(
152151 . register_arrow ( table_name, table_path, ArrowReadOptions :: default ( ) )
153152 . await
154153 . map_err ( |e| format ! ( "Failed to register Arrow table '{table_name}': {e}" ) ) ?;
155- info ! ( "Loaded {table_path} as table {table_name}" ) ;
154+ println ! ( "Loaded {table_path} as table {table_name}" ) ;
156155 }
157156
158157 // Register Parquet tables
@@ -165,7 +164,7 @@ async fn setup_session_context(
165164 . register_parquet ( table_name, table_path, ParquetReadOptions :: default ( ) )
166165 . await
167166 . map_err ( |e| format ! ( "Failed to register Parquet table '{table_name}': {e}" ) ) ?;
168- info ! ( "Loaded {table_path} as table {table_name}" ) ;
167+ println ! ( "Loaded {table_path} as table {table_name}" ) ;
169168 }
170169
171170 // Register Avro tables
@@ -174,7 +173,7 @@ async fn setup_session_context(
174173 . register_avro ( table_name, table_path, AvroReadOptions :: default ( ) )
175174 . await
176175 . map_err ( |e| format ! ( "Failed to register Avro table '{table_name}': {e}" ) ) ?;
177- info ! ( "Loaded {table_path} as table {table_name}" ) ;
176+ println ! ( "Loaded {table_path} as table {table_name}" ) ;
178177 }
179178
180179 // Register pg_catalog
0 commit comments