Skip to content

Commit

Permalink
update arrow and better date/datetime csv handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Sep 27, 2021
1 parent 003daab commit 5241673
Show file tree
Hide file tree
Showing 19 changed files with 168 additions and 287 deletions.
4 changes: 2 additions & 2 deletions polars/polars-arrow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ description = "Arrow interfaces for Polars DataFrame library"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
arrow = { package = "arrow2", git = "https://github.com/jorgecarleitao/arrow2", rev = "194a95d52978b60859a3b2846f8e86a89bc15990", default-features = false }
#arrow = { package = "arrow2", git = "https://github.com/ritchie46/arrow2", default-features = false }
#arrow = { package = "arrow2", git = "https://github.com/jorgecarleitao/arrow2", rev = "194a95d52978b60859a3b2846f8e86a89bc15990", default-features = false }
arrow = { package = "arrow2", git = "https://github.com/ritchie46/arrow2", branch="dev", default-features = false }
#arrow = { package = "arrow2", version = "0.5.3", default-features=false}
thiserror = "^1.0"
num = "^0.4"
Expand Down
4 changes: 2 additions & 2 deletions polars/polars-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ docs-selection = [
]

[dependencies]
arrow = { package = "arrow2", git = "https://github.com/jorgecarleitao/arrow2", rev = "194a95d52978b60859a3b2846f8e86a89bc15990", default-features = false, features=["compute"] }
#arrow = { package = "arrow2", git = "https://github.com/ritchie46/arrow2", default-features = false, features=["compute"] }
#arrow = { package = "arrow2", git = "https://github.com/jorgecarleitao/arrow2", rev = "194a95d52978b60859a3b2846f8e86a89bc15990", default-features = false, features=["compute"] }
arrow = { package = "arrow2", git = "https://github.com/ritchie46/arrow2", default-features = false, features=["compute"], branch="dev" }
#arrow = { package = "arrow2", version="0.5.3", default-features = false, features=["compute"]}
polars-arrow = {version = "0.16.0", path = "../polars-arrow"}
thiserror = "1.0"
Expand Down
8 changes: 4 additions & 4 deletions polars/polars-core/src/chunked_array/ops/aggregate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ macro_rules! impl_quantile {
impl<T> ChunkAgg<T::Native> for ChunkedArray<T>
where
T: PolarsNumericType,
T::Native: NativeType + PartialOrd + Num + NumCast + Zero + Simd,
T::Native: NativeType + PartialOrd + Num + NumCast + Zero + Simd + std::iter::Sum<T::Native>,
<T::Native as Simd>::Simd: Add<Output = <T::Native as Simd>::Simd>
+ compute::aggregate::Sum<T::Native>
+ compute::aggregate::SimdOrd<T::Native>,
Expand Down Expand Up @@ -132,7 +132,7 @@ where
impl<T> ChunkVar<f64> for ChunkedArray<T>
where
T: PolarsIntegerType,
T::Native: NativeType + PartialOrd + Num + NumCast + Zero + Simd,
T::Native: NativeType + PartialOrd + Num + NumCast + Zero + Simd + std::iter::Sum<T::Native>,
<T::Native as Simd>::Simd: Add<Output = <T::Native as Simd>::Simd>
+ compute::aggregate::Sum<T::Native>
+ compute::aggregate::SimdOrd<T::Native>,
Expand Down Expand Up @@ -241,7 +241,7 @@ impl ChunkAgg<u32> for BooleanChunked {
impl<T> ChunkAggSeries for ChunkedArray<T>
where
T: PolarsNumericType,
T::Native: NativeType + PartialOrd + Num + NumCast + Zero + Simd,
T::Native: NativeType + PartialOrd + Num + NumCast + Zero + Simd + std::iter::Sum<T::Native>,
<T::Native as Simd>::Simd: Add<Output = <T::Native as Simd>::Simd>
+ compute::aggregate::Sum<T::Native>
+ compute::aggregate::SimdOrd<T::Native>,
Expand Down Expand Up @@ -297,7 +297,7 @@ macro_rules! impl_as_series {
impl<T> VarAggSeries for ChunkedArray<T>
where
T: PolarsIntegerType,
T::Native: NativeType + PartialOrd + Num + NumCast + Zero + Simd,
T::Native: NativeType + PartialOrd + Num + NumCast + Zero + Simd + std::iter::Sum<T::Native>,
<T::Native as Simd>::Simd: Add<Output = <T::Native as Simd>::Simd>
+ compute::aggregate::Sum<T::Native>
+ compute::aggregate::SimdOrd<T::Native>,
Expand Down
3 changes: 2 additions & 1 deletion polars/polars-core/src/chunked_array/ops/fill_null.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ where
+ One
+ Bounded
+ Add<Output = T::Native>
+ Div<Output = T::Native>,
+ Div<Output = T::Native>
+ std::iter::Sum<T::Native>,
<T::Native as Simd>::Simd: Add<Output = <T::Native as Simd>::Simd>
+ compute::aggregate::Sum<T::Native>
+ compute::aggregate::SimdOrd<T::Native>,
Expand Down

0 comments on commit 5241673

Please sign in to comment.