Kontinuation commented on code in PR #592:
URL: https://github.com/apache/sedona-db/pull/592#discussion_r2788875962
##########
rust/sedona-spatial-join/src/probe/partitioned_stream_provider.rs:
##########
@@ -144,15 +181,16 @@ impl PartitionedProbeStreamProvider {
let mut state_guard = self.state.lock();
match std::mem::replace(&mut *state_guard,
ProbeStreamState::FirstPass) {
ProbeStreamState::Pending { source } => {
- let partitioner = Arc::clone(
- self.options
- .partitioner
- .as_ref()
- .expect("Partitioned first pass requires a
partitioner"),
- );
+ let partitioner = self
+ .options
+ .partitioner
+ .as_ref()
+ .expect("Partitioned first pass requires a partitioner")
+ .lock()
+ .box_clone();
let repartitioner = StreamRepartitioner::builder(
Arc::clone(&self.runtime_env),
- Arc::clone(&partitioner),
+ partitioner.box_clone(),
Review Comment:
Comment addressed.
--
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]