File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ impl DftArgs {
130130#[ derive( Clone , Debug , Subcommand ) ]
131131pub enum FlightSqlCommand {
132132 /// Executes `GetFlightInfo` and `DoGet` on the provided SQL query
133- Statement { sql : String } ,
133+ StatementQuery { sql : String } ,
134134 /// Executes `GetCatalogsFlightInfo` and `DoGet`
135135 Catalogs ,
136136}
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ impl CliApp {
8888 #[ cfg( feature = "flightsql" ) ]
8989 async fn handle_flightsql_command ( & self , command : FlightSqlCommand ) -> color_eyre:: Result < ( ) > {
9090 match command {
91- FlightSqlCommand :: Statement { sql } => self . exec_from_flightsql ( sql, 0 ) . await ,
91+ FlightSqlCommand :: StatementQuery { sql } => self . exec_from_flightsql ( sql, 0 ) . await ,
9292 FlightSqlCommand :: Catalogs => {
9393 let flight_info = self
9494 . app_execution
Original file line number Diff line number Diff line change @@ -645,7 +645,7 @@ async fn test_flightsql_query_command() {
645645 Command :: cargo_bin ( "dft" )
646646 . unwrap ( )
647647 . arg ( "flightsql" )
648- . arg ( "statement" )
648+ . arg ( "statement-query " )
649649 . arg ( sql. clone ( ) )
650650 . timeout ( Duration :: from_secs ( 5 ) )
651651 . assert ( )
You can’t perform that action at this time.
0 commit comments