Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
brad-richardson committed Jul 18, 2024
1 parent 4f2bd39 commit 0c9b517
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/osm_arrow.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
use std::alloc::LayoutErr;
use std::fmt;
use std::sync::Arc;

use arrow::array::builder::{
ArrayBuilder, BooleanBuilder, Int64Builder, ListBuilder, MapBuilder, StringBuilder,
StructBuilder,
BooleanBuilder, Int64Builder, ListBuilder, MapBuilder, StringBuilder, StructBuilder,
};
use arrow::array::{make_builder, Array, ArrayRef, Float64Builder, Int32Builder, TimestampMillisecondBuilder};
use arrow::datatypes::{DataType, TimeUnit, Field, Fields, Schema};
use arrow::array::{ArrayRef, Float64Builder, Int32Builder, TimestampMillisecondBuilder};
use arrow::datatypes::{DataType, Field, Fields, Schema, TimeUnit};
use arrow::error::ArrowError;
use arrow::ipc::Utf8Builder;
use arrow::record_batch::RecordBatch;
use osmpbf::WayNodeLocationsIter;

#[derive(Clone, Debug, Eq, PartialEq, Hash)]
pub enum OSMType {
Expand Down Expand Up @@ -87,7 +83,11 @@ pub fn osm_arrow_schema() -> Schema {
true,
),
Field::new("changeset", DataType::Int64, true),
Field::new("timestamp", DataType::Timestamp(TimeUnit::Millisecond, None), true),
Field::new(
"timestamp",
DataType::Timestamp(TimeUnit::Millisecond, None),
true,
),
Field::new("uid", DataType::Int32, true),
Field::new("user", DataType::Utf8, true),
Field::new("version", DataType::Int32, true),
Expand Down

0 comments on commit 0c9b517

Please sign in to comment.