MCPcopy Create free account
hub / github.com/apache/datafusion / divide_100_by

Function divide_100_by

datafusion/functions-nested/src/array_transform.rs:235–243  ·  view source on GitHub ↗
(
        list: impl Array + Clone + 'static,
    )

Source from the content-addressed store, hash-verified

233 use datafusion_expr::lit;
234
235 fn divide_100_by(
236 list: impl Array + Clone + 'static,
237 ) -> datafusion_common::Result<arrow::array::ArrayRef> {
238 eval_hof_on_i32_list(
239 array_transform_higher_order_function(),
240 list,
241 lit(100i32) / v(),
242 )
243 }
244
245 #[test]
246 fn transform_on_sliced_list_should_not_evaluate_on_unreachable_values() {

Calls 3

eval_hof_on_i32_listFunction · 0.85
vFunction · 0.85
litFunction · 0.50

Used in the wild real call sites across dependent graphs

searching dependent graphs…