tustvold commented on PR #6906:
URL: https://github.com/apache/arrow-rs/pull/6906#issuecomment-2555107419

   > Could you please clarify the comment about codegen? At which point is the 
codegen invoked?
   
   Rust relies on monomorophisation of generics, i.e. each distinct 
parametrisation of a generic generates a "copy" of that code. This can quickly 
add up and bloat binary size and compile times. See 
https://rustc-dev-guide.rust-lang.org/backend/monomorph.html
   
   > You mean coercion from, say, f32 to f64? What are you referring to in this 
sentence?
   
   DataFusion has existing logic to coerce inputs to those compatible with a 
function signature, if we provide the ability to multiply `interval * i64`, 
DataFusion has existing machinery to generalize this to `interval * (type 
coercable to i64)`, including from things like strings.


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