alamb commented on code in PR #5946:
URL: https://github.com/apache/arrow-datafusion/pull/5946#discussion_r1161789045


##########
datafusion/substrait/src/logical_plan/consumer.rs:
##########
@@ -453,7 +453,12 @@ pub async fn from_substrait_sorts(
         let asc_nullfirst = match &s.sort_kind {
             Some(k) => match k {
                 Direction(d) => {
-                    let direction: SortDirection = unsafe { 
::std::mem::transmute(*d) };
+                    let Some(direction) = SortDirection::from_i32(*d) else {

Review Comment:
   The point of the PR is to remove all uses of `transmute` here



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

Reply via email to