1515// specific language governing permissions and limitations
1616// under the License.
1717
18+ use crate :: ScalarValue ;
1819use crate :: error:: _internal_err;
1920use crate :: types:: extension:: DFExtensionType ;
20- use crate :: ScalarValue ;
2121use arrow:: array:: { Array , AsArray , Int16Array } ;
2222use arrow:: buffer:: NullBuffer ;
2323use arrow:: compute:: cast;
@@ -26,8 +26,8 @@ use arrow::datatypes::{
2626 TimestampNanosecondType , TimestampSecondType ,
2727} ;
2828use arrow:: util:: display:: { ArrayFormatter , DisplayIndex , FormatOptions , FormatResult } ;
29- use arrow_schema:: extension:: { ExtensionType , TimestampWithOffset } ;
3029use arrow_schema:: ArrowError ;
30+ use arrow_schema:: extension:: { ExtensionType , TimestampWithOffset } ;
3131use std:: fmt:: Write ;
3232
3333/// Defines the extension type logic for the canonical `arrow.timestamp_with_offset` extension type.
@@ -201,7 +201,7 @@ mod tests {
201201 TimestampSecondArray ,
202202 } ;
203203 use arrow:: buffer:: NullBuffer ;
204- use arrow:: datatypes:: { Field , Fields , Int32Type } ;
204+ use arrow:: datatypes:: { Field , Fields , Int16Type , Int32Type } ;
205205 use chrono:: { TimeZone , Utc } ;
206206 use std:: sync:: Arc ;
207207
0 commit comments