Skip to content
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -385,6 +385,8 @@ def utf8_literal(value: str) -> Expr:
385
385
"""Creates a new expression representing a UTF8 literal value.
386
386
387
387
It is different from `literal` because it is pa.string() instead of pa.string_view()
388
+ This is needed for cases where datafusion is expecting a utf8 instead of utf8view literal like in
389
+ https://github.com/apache/datafusion/blob/86740bfd3d9831d6b7c1d0e1bf4a21d91598a0ac/datafusion/functions/src/core/arrow_cast.rs#L179
388
390
"""
389
391
if isinstance (value , str ):
390
392
value = pa .scalar (value , type = pa .string ())
You can’t perform that action at this time.
0 commit comments