Skip to content

Commit 193d21c

Browse files
committed
Revert "fix: add utf8_literal function to create UTF8 literal expressions in tests"
This reverts commit 11ed674.
1 parent 11ed674 commit 193d21c

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

python/tests/test_functions.py

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

2424
from datafusion import SessionContext, column
2525
from datafusion import functions as f
26-
from datafusion import literal, Expr
26+
from datafusion import literal
2727

2828
np.seterr(invalid="ignore")
2929

@@ -905,15 +905,10 @@ def test_temporal_functions(df):
905905
)
906906

907907

908-
def utf8_literal(value: str) -> Expr:
909-
"""Creates a new expression representing a UTF8 literal value."""
910-
return literal(pa.scalar(value, type=pa.string()))
911-
912-
913908
def test_arrow_cast(df):
914909
df = df.select(
915-
f.arrow_cast(column("a"), utf8_literal("Float64")).alias("a_as_float"),
916-
f.arrow_cast(column("a"), utf8_literal("Int32")).alias("a_as_int"),
910+
f.arrow_cast(column("a"), literal("Float64")).alias("a_as_float"),
911+
f.arrow_cast(column("a"), literal("Int32")).alias("a_as_int"),
917912
)
918913
result = df.collect()
919914
assert len(result) == 1

0 commit comments

Comments
 (0)