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 0106cb7 commit 74cbd3bCopy full SHA for 74cbd3b
python/tests/test_functions.py
@@ -911,6 +911,9 @@ def test_temporal_functions(df):
911
912
def test_arrow_cast(df):
913
df = df.select(
914
+ # we use `utf8_literal` to returns utf8 instead of `literal` which returns utf8view
915
+ # because datafusion.arrow_cast # expects a utf8 instead of utf8view
916
+ # https://github.com/apache/datafusion/blob/86740bfd3d9831d6b7c1d0e1bf4a21d91598a0ac/datafusion/functions/src/core/arrow_cast.rs#L179
917
f.arrow_cast(column("b"), utf8_literal("Float64")).alias("b_as_float"),
918
f.arrow_cast(column("b"), utf8_literal("Int32")).alias("b_as_int"),
919
)
0 commit comments