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 d801567 commit 0106cb7Copy full SHA for 0106cb7
python/datafusion/expr.py
@@ -385,6 +385,8 @@ def utf8_literal(value: str) -> Expr:
385
"""Creates a new expression representing a UTF8 literal value.
386
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
390
"""
391
if isinstance(value, str):
392
value = pa.scalar(value, type=pa.string())
0 commit comments