Skip to content

Commit de75849

Browse files
committed
chore: update package versions and improve test snapshots
- Bump package version from 0.5.0 to 0.5.1. - Update datafusion dependency version from 50.3 to 51.0. - Update arrow dependency version from 56.0 to 57.0. - Modify test snapshots for max_by and min_by functions to reflect changes in length calculation.
1 parent c494d51 commit de75849

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

Cargo.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
[package]
1919
name = "datafusion-extra-functions"
20-
version = "0.5.0"
20+
version = "0.5.1"
2121
edition = "2024"
2222
description = "Extra Functions for DataFusion"
2323
readme = "README.md"
@@ -37,7 +37,7 @@ paste = "1.0"
3737

3838
[dependencies.datafusion]
3939
default-features = false
40-
version = "50.3"
40+
version = "51.0"
4141

4242
[dev-dependencies]
4343
criterion = "0.7"
@@ -49,7 +49,12 @@ default-features = false
4949
features = [
5050
"test_utils",
5151
]
52-
version = "56.0"
52+
version = "57.0"
53+
54+
[dev-dependencies.datafusion]
55+
default-features = false
56+
features = ["sql"]
57+
version = "51.0"
5358

5459
[dev-dependencies.insta]
5560
features = [

tests/main.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ async fn test_max_by_and_min_by() {
154154
.await;
155155

156156
insta::assert_yaml_snapshot!(actual, @r###"
157-
- +---------------------------------------------+
158-
- "| max_by(tab.name,character_length(tab.name)) |"
159-
- +---------------------------------------------+
160-
- "| Charlie |"
161-
- +---------------------------------------------+
157+
- +-----------------------------------+
158+
- "| max_by(tab.name,length(tab.name)) |"
159+
- +-----------------------------------+
160+
- "| Charlie |"
161+
- +-----------------------------------+
162162
"###);
163163

164164
// Test min_by with strings
@@ -167,11 +167,11 @@ async fn test_max_by_and_min_by() {
167167
.await;
168168

169169
insta::assert_yaml_snapshot!(actual, @r###"
170-
- +---------------------------------------------+
171-
- "| min_by(tab.name,character_length(tab.name)) |"
172-
- +---------------------------------------------+
173-
- "| Bob |"
174-
- +---------------------------------------------+
170+
- +-----------------------------------+
171+
- "| min_by(tab.name,length(tab.name)) |"
172+
- +-----------------------------------+
173+
- "| Bob |"
174+
- +-----------------------------------+
175175
"###);
176176

177177
// Test max_by with null values

0 commit comments

Comments
 (0)