@@ -40,22 +40,24 @@ use crate::cast::{
40
40
use crate :: error:: { DataFusionError , Result , _exec_err, _internal_err, _not_impl_err} ;
41
41
use crate :: hash_utils:: create_hashes;
42
42
use crate :: utils:: SingleRowListArrayBuilder ;
43
- use arrow:: array:: types:: { IntervalDayTime , IntervalMonthDayNano } ;
43
+ use arrow:: array:: {
44
+ types:: { IntervalDayTime , IntervalMonthDayNano } ,
45
+ * ,
46
+ } ;
44
47
use arrow:: buffer:: ScalarBuffer ;
45
- use arrow:: compute:: kernels:: numeric:: * ;
46
- use arrow:: util:: display:: { array_value_to_string, ArrayFormatter , FormatOptions } ;
47
- use arrow:: {
48
- array:: * ,
49
- compute:: kernels:: cast:: { cast_with_options, CastOptions } ,
50
- datatypes:: {
51
- i256, ArrowDictionaryKeyType , ArrowNativeType , ArrowTimestampType , DataType ,
52
- Date32Type , Date64Type , Field , Float32Type , Int16Type , Int32Type , Int64Type ,
53
- Int8Type , IntervalDayTimeType , IntervalMonthDayNanoType , IntervalUnit ,
54
- IntervalYearMonthType , TimeUnit , TimestampMicrosecondType ,
55
- TimestampMillisecondType , TimestampNanosecondType , TimestampSecondType ,
56
- UInt16Type , UInt32Type , UInt64Type , UInt8Type , DECIMAL128_MAX_PRECISION ,
57
- } ,
48
+ use arrow:: compute:: kernels:: {
49
+ cast:: { cast_with_options, CastOptions } ,
50
+ numeric:: * ,
58
51
} ;
52
+ use arrow:: datatypes:: {
53
+ i256, ArrowDictionaryKeyType , ArrowNativeType , ArrowTimestampType , DataType ,
54
+ Date32Type , Date64Type , Field , Float32Type , Int16Type , Int32Type , Int64Type ,
55
+ Int8Type , IntervalDayTimeType , IntervalMonthDayNanoType , IntervalUnit ,
56
+ IntervalYearMonthType , TimeUnit , TimestampMicrosecondType , TimestampMillisecondType ,
57
+ TimestampNanosecondType , TimestampSecondType , UInt16Type , UInt32Type , UInt64Type ,
58
+ UInt8Type , DECIMAL128_MAX_PRECISION ,
59
+ } ;
60
+ use arrow:: util:: display:: { array_value_to_string, ArrayFormatter , FormatOptions } ;
59
61
use arrow_schema:: { UnionFields , UnionMode } ;
60
62
61
63
use crate :: format:: DEFAULT_CAST_OPTIONS ;
@@ -165,7 +167,7 @@ pub use struct_builder::ScalarStructBuilder;
165
167
/// ```
166
168
/// # use std::sync::Arc;
167
169
/// # use arrow::datatypes::{DataType, Field, Fields};
168
- /// # use arrow_array ::{ArrayRef, Int32Array, StructArray, StringArray};
170
+ /// # use arrow::array ::{ArrayRef, Int32Array, StructArray, StringArray};
169
171
/// # use datafusion_common::ScalarValue;
170
172
/// // Build a struct like: {a: 1, b: "foo"}
171
173
/// // Field description
@@ -1674,7 +1676,7 @@ impl ScalarValue {
1674
1676
///
1675
1677
/// assert_eq!(&result, &expected);
1676
1678
/// ```
1677
- /// [`Datum`]: arrow_array ::Datum
1679
+ /// [`Datum`]: arrow::array ::Datum
1678
1680
pub fn to_scalar ( & self ) -> Result < Scalar < ArrayRef > > {
1679
1681
Ok ( Scalar :: new ( self . to_array_of_size ( 1 ) ?) )
1680
1682
}
0 commit comments