Skip to content

Commit

Permalink
Initcap now returns stringview
Browse files Browse the repository at this point in the history
  • Loading branch information
timsaucer committed Jan 9, 2025
1 parent f43bcc3 commit 0f88d8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,10 @@ def test_array_function_obj_tests(stmt, py_expr):
f.concat(column("a").cast(pa.string()), literal("?")),
pa.array(["Hello?", "World?", "!?"], type=pa.string_view()),
),
(f.initcap(column("c")), pa.array(["Hello ", " World ", " !"])),
(
f.initcap(column("c")),
pa.array(["Hello ", " World ", " !"], type=pa.string_view()),
),
(f.left(column("a"), literal(3)), pa.array(["Hel", "Wor", "!"])),
(f.length(column("c")), pa.array([6, 7, 2], type=pa.int32())),
(f.lower(column("a")), pa.array(["hello", "world", "!"])),
Expand Down

0 comments on commit 0f88d8e

Please sign in to comment.