From ada122e5c39b3212f0108aebaf7014d35815c259 Mon Sep 17 00:00:00 2001 From: Guillem Borrell Date: Sun, 25 Dec 2022 09:02:13 +0000 Subject: [PATCH] Polars version bump. Compile time erro fix --- Cargo.toml | 5 +++-- src/sql.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index aa60d88..6f1afc3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "dr" description = "Command-line data file processing in Rust" -version = "0.4.2" +version = "0.5.0" edition = "2021" include = [ "**/*.rs", @@ -14,4 +14,5 @@ repository = "https://git.guillemborrell.es/guillem/dr" [dependencies] clap = {version = "4.0", features = ["cargo"]} -polars = {"version" = "0.25", features = ["sql", "lazy", "parquet", "decompress", "ipc", "ipc_streaming", "docs-selection"]} +polars-lazy = {"version" = "0.26"} +polars = {"version" = "0.26", features = ["sql", "lazy", "parquet", "decompress", "ipc", "ipc_streaming", "docs-selection"]} diff --git a/src/sql.rs b/src/sql.rs index e908ad8..4060642 100644 --- a/src/sql.rs +++ b/src/sql.rs @@ -1,4 +1,4 @@ -use polars::prelude::LazyFrame; +use polars_lazy::lazy::LazyFrame; use polars::sql::SQLContext; pub fn execute(ldf: LazyFrame, statement: &String) -> LazyFrame {