@@ -29,7 +29,7 @@ use tokio::task::block_in_place;
2929
3030use crate :: browse:: app:: AppState ;
3131use crate :: datafusion_helper:: arrow_value_to_json;
32- use crate :: datafusion_helper:: execute_vortex_query ;
32+ use crate :: datafusion_helper:: execute_query ;
3333use crate :: datafusion_helper:: json_value_to_display;
3434
3535/// Sort direction for table columns.
@@ -251,7 +251,7 @@ impl QueryState {
251251 self . running = true ;
252252 self . error = None ;
253253
254- match execute_query ( file_path, & self . sql_input ) {
254+ match exec_query ( file_path, & self . sql_input ) {
255255 Ok ( results) => {
256256 self . results = Some ( results) ;
257257 self . table_state . select ( Some ( 0 ) ) ;
@@ -383,10 +383,10 @@ pub struct QueryResults {
383383}
384384
385385/// Execute a SQL query against the Vortex file.
386- pub fn execute_query ( file_path : & str , sql : & str ) -> Result < QueryResults , String > {
386+ fn exec_query ( file_path : & str , sql : & str ) -> Result < QueryResults , String > {
387387 block_in_place ( || {
388388 Handle :: current ( ) . block_on ( async {
389- let batches = execute_vortex_query ( file_path, sql) . await ?;
389+ let batches = execute_query ( file_path, sql) . await ?;
390390
391391 let total_rows: usize = batches. iter ( ) . map ( |b| b. num_rows ( ) ) . sum ( ) ;
392392
@@ -412,7 +412,7 @@ pub fn get_row_count(file_path: &str, base_query: &str) -> Result<usize, String>
412412 Handle :: current ( ) . block_on ( async {
413413 let count_sql = format ! ( "SELECT COUNT(*) as count FROM ({base_query}) AS subquery" ) ;
414414
415- let batches = execute_vortex_query ( file_path, & count_sql) . await ?;
415+ let batches = execute_query ( file_path, & count_sql) . await ?;
416416
417417 // Extract count from result
418418 if let Some ( batch) = batches. first ( )
0 commit comments