Skip to content

Commit

Permalink
make InList Display implementation deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Dec 14, 2024
1 parent bfabd48 commit 449dcf0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions datafusion/expr/src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1843,11 +1843,12 @@ fn rewrite_placeholder(expr: &mut Expr, other: &Expr, schema: &DFSchema) -> Resu
#[macro_export]
macro_rules! expr_vec_fmt {
( $ARRAY:expr ) => {{
$ARRAY
let mut expr_str = $ARRAY
.iter()
.map(|e| format!("{e}"))
.collect::<Vec<String>>()
.join(", ")
.collect::<Vec<String>>();
expr_str.sort();
expr_str.join(", ")
}};
}

Expand Down

0 comments on commit 449dcf0

Please sign in to comment.