8000 fix: update test_arrow_cast to use literal for data type parameters · kosiew/datafusion-python@8c7e2f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8c7e2f8

Browse files
committed
fix: update test_arrow_cast to use literal for data type parameters
1 parent 1e4e350 commit 8c7e2f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/tests/test_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,8 +907,8 @@ def test_temporal_functions(df):
907907

908908
def test_arrow_cast(df):
909909
df = df.select(
910-
f.arrow_cast(column("a"), "Float64").alias("a_as_float"),
911-
f.arrow_cast(column("a"), "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"),
912912
)
913913
result = df.collect()
914914
assert len(result) == 1

0 commit comments

Comments
 (0)
0