We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61115b3 commit 11071e6Copy full SHA for 11071e6
python/tests/test_functions.py
@@ -907,8 +907,10 @@ def test_temporal_functions(df):
907
908
def test_arrow_cast(df):
909
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"),
+ f.arrow_cast(column("a"), literal("Float64").cast(pa.string())).alias(
+ "a_as_float"
912
+ ),
913
+ f.arrow_cast(column("a"), literal("Int32").cast(pa.string())).alias("a_as_int"),
914
)
915
result = df.collect()
916
assert len(result) == 1
0 commit comments