avantgardnerio commented on code in PR #269:
URL: https://github.com/apache/arrow-ballista/pull/269#discussion_r979036379
##########
ballista/rust/scheduler/src/flight_sql.rs:
##########
@@ -52,22 +60,26 @@ use datafusion::prelude::SessionContext;
use datafusion_proto::protobuf::LogicalPlanNode;
use prost::Message;
use tokio::time::sleep;
+use tonic::codegen::futures_core::Stream;
+use tonic::metadata::MetadataValue;
use uuid::Uuid;
pub struct FlightSqlServiceImpl {
server: SchedulerServer<LogicalPlanNode, PhysicalPlanNode>,
statements: Arc<Mutex<HashMap<Uuid, LogicalPlan>>>,
+ contexts: Arc<Mutex<HashMap<Uuid, Arc<SessionContext>>>>,
Review Comment:
Store a map of `SessionContext` to `UUID` so we can look up the session for
the user and keep the tables registered.
TODO: move this into etcd?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]