This is an automated email from the ASF dual-hosted git repository.
HyukjinKwon pushed a commit to branch branch-4.2
in repository https://gitbox.apache.org/repos/asf/spark-connect-rust.git
The following commit(s) were added to refs/heads/branch-4.2 by this push:
new 94c4373 [SPARK-59110][FOLLOWUP] Fix Rust test call sites for variadic
concat_ws/format_string
94c4373 is described below
commit 94c43737ab2d1e3c898653bceeeb880338575ae5
Author: Hyukjin Kwon <[email protected]>
AuthorDate: Sat Aug 29 22:13:59 2026 +0900
[SPARK-59110][FOLLOWUP] Fix Rust test call sites for variadic
concat_ws/format_string
Making concat_ws/format_string variadic changed their signature from a
single
Column to an iterator, breaking two unit-test call sites and two
functions_golden
call sites that passed a single Column (`cargo build --all-targets` / the
"Rust
build and test" CI job failed to compile). Pass a one-element array so the
built
expression is unchanged.
Co-authored-by: Isaac <[email protected]>
---
crates/spark-connect/src/functions.rs | 4 ++--
crates/spark-connect/tests/functions_golden.rs | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/crates/spark-connect/src/functions.rs
b/crates/spark-connect/src/functions.rs
index cb3dae8..6da75b7 100644
--- a/crates/spark-connect/src/functions.rs
+++ b/crates/spark-connect/src/functions.rs
@@ -4879,7 +4879,7 @@ mod tests {
collation(c1.clone()),
collect_list(c1.clone()),
collect_set(c1.clone()),
- concat_ws(c1.clone()),
+ concat_ws([c1.clone()]),
cos(c1.clone()),
cosh(c1.clone()),
cot(c1.clone()),
@@ -4911,7 +4911,7 @@ mod tests {
first_value(c1.clone()),
flatten(c1.clone()),
floor(c1.clone()),
- format_string(c1.clone()),
+ format_string([c1.clone()]),
grouping(c1.clone()),
hex(c1.clone()),
hll_sketch_agg(c1.clone()),
diff --git a/crates/spark-connect/tests/functions_golden.rs
b/crates/spark-connect/tests/functions_golden.rs
index 9b9405e..e0c1348 100644
--- a/crates/spark-connect/tests/functions_golden.rs
+++ b/crates/spark-connect/tests/functions_golden.rs
@@ -200,7 +200,7 @@ fn all_golden_function_cases_pass() {
("collect_set", collect_set(a())),
("column", column("x")),
("concat", concat(Vec::<Column>::new())),
- ("concat_ws", concat_ws(a())),
+ ("concat_ws", concat_ws([a()])),
("contains", contains(a(), b())),
("conv", conv(a(), b(), c())),
("convert_timezone", convert_timezone(a(), b(), c())),
@@ -269,7 +269,7 @@ fn all_golden_function_cases_pass() {
("flatten", flatten(a())),
("floor", floor(a())),
("format_number", format_number(a(), b())),
- ("format_string", format_string(a())),
+ ("format_string", format_string([a()])),
("from_csv", from_csv(a(), b())),
("from_json", from_json(a(), b())),
("from_unixtime", from_unixtime(a())),
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]