Skip to content

Commit

Permalink
fix: fix arrow-flight-sql-odbc handshake error
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuoTiJia authored and yukkit committed Jul 10, 2023
1 parent cc46710 commit e05af4a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions main/src/flight_sql/flight_sql_server.rs
Expand Up @@ -382,13 +382,8 @@ where
let meta_data = request.metadata();
let auth_result = self.authenticator.authenticate(meta_data).await?;

let result = HandshakeResponse {
protocol_version: 0,
payload: "NULL".into(),
};
let result = Ok(result);
let output: Pin<Box<dyn Stream<Item = Result<HandshakeResponse, Status>> + Send>> =
Box::pin(futures::stream::iter(vec![result]));
Box::pin(futures::stream::empty());
let mut resp = Response::new(output);

// Append the token generated by authenticator to the response header
Expand Down

0 comments on commit e05af4a

Please sign in to comment.