Skip to content

Commit 1fb3b15

Browse files
adamreeveritchie46
authored andcommitted
Check for compatible types before IEJoin
1 parent e8095d9 commit 1fb3b15

File tree

1 file changed

+12
-12
lines changed
  • crates/polars-ops/src/frame/join

1 file changed

+12
-12
lines changed

crates/polars-ops/src/frame/join/mod.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,6 @@ pub trait DataFrameJoinOps: IntoDf {
115115
return left_df.cross_join(other, args.suffix.clone(), args.slice);
116116
}
117117

118-
if let JoinType::IEJoin(options) = args.how {
119-
return iejoin::join_dataframes(
120-
left_df,
121-
other,
122-
selected_left,
123-
selected_right,
124-
&options,
125-
args.suffix.as_deref(),
126-
args.slice,
127-
);
128-
}
129-
130118
// Clear literals if a frame is empty. Otherwise we could get an oob
131119
fn clear(s: &mut [Series]) {
132120
for s in s.iter_mut() {
@@ -211,6 +199,18 @@ pub trait DataFrameJoinOps: IntoDf {
211199
}
212200
}
213201

202+
if let JoinType::IEJoin(options) = args.how {
203+
return iejoin::join_dataframes(
204+
left_df,
205+
other,
206+
selected_left,
207+
selected_right,
208+
&options,
209+
args.suffix.as_deref(),
210+
args.slice,
211+
);
212+
}
213+
214214
// Single keys.
215215
if selected_left.len() == 1 {
216216
let s_left = &selected_left[0];

0 commit comments

Comments
 (0)