Apache DataFusion SQL Query Engine
ARROW-11086: [Rust] Extend take implementation to more index types
Heres, Daniel34bc364156fc
diff --git a/rust/datafusion/src/physical_plan/hash_join.rs b/rust/datafusion/src/physical_plan/hash_join.rsindex a9d5963cc4..50800df909 100644--- a/rust/datafusion/src/physical_plan/hash_join.rs+++ b/rust/datafusion/src/physical_plan/hash_join.rs@@ -316,7 +316,8 @@ fn build_batch_from_indices(// 2. based on the pick, `take` items from the different recordBatcheslet mut columns: Vec<Arc<dyn Array>> = Vec::with_capacity(schema.fields().len());- let right_indices = indices.iter().map(|(_, join_index)| join_index).collect();+ let right_indices: UInt32Array =+ indices.iter().map(|(_, join_index)| join_index).collect();for field in schema.fields() {// pick the column (left or right) based on the field name.