Skip to content

Commit d60f666

Browse files
Update name
1 parent e60c66e commit d60f666

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ impl DftArgs {
130130
#[derive(Clone, Debug, Subcommand)]
131131
pub 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
}

src/cli/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

tests/extension_cases/flightsql.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)