Dandandan commented on code in PR #19554:
URL: https://github.com/apache/datafusion/pull/19554#discussion_r2651836847


##########
datafusion/physical-expr/src/expressions/case.rs:
##########
@@ -145,10 +145,13 @@ impl CaseBody {
         }
 
         // Construct a mapping from the original column index to the projected 
column index.
-        let column_index_map = used_column_indices
-            .iter()
+        let mut sorted_used_column_indices =
+            used_column_indices.into_iter().collect::<Vec<_>>();
+        sorted_used_column_indices.sort_unstable();

Review Comment:
   I changed it to use `IndexSet` / `IndexMap`



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to