Skip to content

Commit 4d37a39

Browse files
committed
fix: resolve merge conflicts
1 parent 01a370e commit 4d37a39

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

datafusion/tests/test_functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ def test_string_functions(df):
533533
f.translate(column("a"), literal("or"), literal("ld")),
534534
f.trim(column("c")),
535535
f.upper(column("c")),
536+
f.ends_with(column("a"), literal("llo")),
536537
)
537538
result = df.collect()
538539
assert len(result) == 1
@@ -573,6 +574,7 @@ def test_string_functions(df):
573574
assert result.column(25) == pa.array(["Helll", "Wldld", "!"])
574575
assert result.column(26) == pa.array(["hello", "world", "!"])
575576
assert result.column(27) == pa.array(["HELLO ", " WORLD ", " !"])
577+
assert result.column(22) == pa.array([True, False, False])
576578

577579

578580
def test_hash_functions(df):

src/functions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ expr_fn!(
474474
);
475475
expr_fn!(sqrt, num);
476476
expr_fn!(starts_with, arg1 arg2, "Returns true if string starts with prefix.");
477+
expr_fn!(ends_with, arg1 arg2, "Returns true if string ends with suffix.");
477478
expr_fn!(strpos, string substring, "Returns starting index of specified substring within string, or zero if it's not present. (Same as position(substring in string), but note the reversed argument order.)");
478479
expr_fn!(substr, string position);
479480
expr_fn!(tan, num);

0 commit comments

Comments
 (0)