diff --git a/arrow-flight/src/sql/client.rs b/arrow-flight/src/sql/client.rs index 91790898b1cb..34992a949b9e 100644 --- a/arrow-flight/src/sql/client.rs +++ b/arrow-flight/src/sql/client.rs @@ -110,6 +110,11 @@ impl FlightSqlServiceClient { self.token = None; } + /// Share the bearer token with potentially different `DoGet` clients + pub fn token(&self) -> Option<&String> { + self.token.as_ref() + } + /// Set header value. pub fn set_header(&mut self, key: impl Into, value: impl Into) { let key: String = key.into();