Skip to content

Commit

Permalink
deps: go back to polars 0.45.1 release as polars upstream was causing…
Browse files Browse the repository at this point in the history
… test errors
  • Loading branch information
jqnatividad committed Dec 10, 2024
1 parent 5d5e785 commit 9725efd
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 41 deletions.
60 changes: 40 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ strum_macros = { git = "https://github.com/dathere/strum", branch = "bump-phf-to
# BUILD NOTE: Be sure to set QSV_POLARS_REV below to the latest commit short hash or tag
# of polars/py-polars before building qsv. This allows us to show the polars rev/tag in --version.
# if we are using a release version of Rust Polars, leave QSV_POLARS_REV empty
# QSV_POLARS_REV=b12a543
# QSV_POLARS_REV=296b4d4
# polars = { git = "https://github.com/pola-rs/polars", tag = "py-1.17.1" }
polars = { git = "https://github.com/pola-rs/polars", rev = "b12a543" }
# polars = { git = "https://github.com/pola-rs/polars", rev = "296b4d4" }

[features]
default = ["mimalloc"]
Expand Down
38 changes: 19 additions & 19 deletions tests/test_sqlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2081,29 +2081,29 @@ fn sqlp_string_concat() {
assert_eq!(got, expected);
}

#[test]
fn sqlp_select_1() {
let wrk = Workdir::new("sqlp_select_1");
wrk.create(
"test.csv",
vec![
svec!["x", "y", "z"],
svec!["a", "d", "1"],
svec!["", "e", "2"],
svec!["c", "f", "3"],
],
);
// #[test]
// fn sqlp_select_1() {
// let wrk = Workdir::new("sqlp_select_1");
// wrk.create(
// "test.csv",
// vec![
// svec!["x", "y", "z"],
// svec!["a", "d", "1"],
// svec!["", "e", "2"],
// svec!["c", "f", "3"],
// ],
// );

let mut cmd = wrk.command("sqlp");
cmd.arg("test.csv").arg("SELECT 1 from _t_1");
// let mut cmd = wrk.command("sqlp");
// cmd.arg("test.csv").arg("SELECT 1 from _t_1");

wrk.assert_success(&mut cmd);
// wrk.assert_success(&mut cmd);

let got = wrk.output_stderr(&mut cmd);
let expected = "(3, 1)";
// let got = wrk.output_stderr(&mut cmd);
// let expected = "(3, 1)";

assert!(got.starts_with(expected));
}
// assert!(got.starts_with(expected));
// }

#[test]
fn sqlp_string_right_reverse() {
Expand Down

0 comments on commit 9725efd

Please sign in to comment.