Skip to content

Commit

Permalink
Support firecache hotfix (#23)
Browse files Browse the repository at this point in the history
* Add fire_query method to client

* Hotfix
  • Loading branch information
gloomweaver authored Jan 4, 2024
1 parent 7dc29e6 commit 8cc8497
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/flight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,7 @@ impl SqlFlightClient {
// There seems to be an issue with ticket parsing in arrow-flight crate
// This is a workaround to fix the issue
let fixed_ticket = if firecache {
Ticket::new(
tkt.ticket
.into_iter()
.skip_while(|&x| x != b'}')
.skip(1)
.collect::<Vec<u8>>(),
)
Ticket::new(query.to_string())
} else {
tkt
};
Expand Down

0 comments on commit 8cc8497

Please sign in to comment.