Skip to content

Commit 523c980

Browse files
authored
upgrade to datafusion 42 (#47)
1 parent b1ca610 commit 523c980

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "datafusion-functions-json"
3-
version = "0.41.0"
3+
version = "0.42.0"
44
edition = "2021"
55
description = "JSON functions for DataFusion"
66
readme = "README.md"
@@ -11,16 +11,16 @@ repository = "https://github.com/datafusion-contrib/datafusion-functions-json/"
1111
rust-version = "1.76.0"
1212

1313
[dependencies]
14-
datafusion = "41"
14+
datafusion = "42"
1515
jiter = "0.5"
1616
paste = "1"
1717
log = "0.4"
1818

1919
[dev-dependencies]
20-
codspeed-criterion-compat = "2.3"
20+
codspeed-criterion-compat = "2.6"
2121
criterion = "0.5.1"
2222
clap = "4"
23-
tokio = { version = "1.37", features = ["full"] }
23+
tokio = { version = "1.38", features = ["full"] }
2424

2525
[lints.clippy]
2626
dbg_macro = "deny"

tests/main.rs

+11-3
Original file line numberDiff line numberDiff line change
@@ -949,10 +949,18 @@ async fn test_arrow_nested_double_columns() {
949949
}
950950

951951
#[tokio::test]
952-
async fn test_lexical_precedence_wrong() {
952+
async fn test_lexical_precedence_correct() {
953+
#[rustfmt::skip]
954+
let expected = [
955+
"+------+",
956+
"| v |",
957+
"+------+",
958+
"| true |",
959+
"+------+",
960+
];
953961
let sql = r#"select '{"a": "b"}'->>'a'='b' as v"#;
954-
let err = run_query(sql).await.unwrap_err();
955-
assert_eq!(err.to_string(), "Error during planning: Unexpected argument type to 'json_as_text' at position 2, expected string or int, got Boolean.");
962+
let batches = run_query(sql).await.unwrap();
963+
assert_batches_eq!(expected, &batches);
956964
}
957965

958966
#[tokio::test]

0 commit comments

Comments
 (0)