8000 fix: update test_arrow_cast to use literal casting for data types · kosiew/datafusion-python@11071e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 11071e6

Browse files
committed
fix: update test_arrow_cast to use literal casting for data types
1 parent 61115b3 commit 11071e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/tests/test_functions.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,8 +907,10 @@ 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").cast(pa.string())).alias(
911+
"a_as_float"
912+
),
913+
f.arrow_cast(column("a"), literal("Int32").cast(pa.string())).alias("a_as_int"),
912914
)
913915
result = df.collect()
914916
assert len(result) == 1

0 commit comments

Comments
 (0)
0