MCPcopy Create free account
hub / github.com/apache/arrow-rs / create_decimal_array

Function create_decimal_array

arrow/tests/array_transform.rs:33–39  ·  view source on GitHub ↗
(array: Vec<Option<i128>>, precision: u8, scale: i8)

Source from the content-addressed store, hash-verified

31
32#[allow(unused)]
33fn create_decimal_array(array: Vec<Option<i128>>, precision: u8, scale: i8) -> Decimal128Array {
34 array
35 .into_iter()
36 .collect::<Decimal128Array>()
37 .with_precision_and_scale(precision, scale)
38 .unwrap()
39}
40
41#[test]
42#[cfg(not(feature = "force_validate"))]

Callers 3

test_decimalFunction · 0.70
test_decimal_offsetFunction · 0.70

Calls 2

into_iterMethod · 0.45

Tested by

no test coverage detected