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 cdf32cd commit 187e077Copy full SHA for 187e077
python/datafusion/expr.py
@@ -382,7 +382,10 @@ def literal(value: Any) -> Expr:
382
383
@staticmethod
384
def utf8_literal(value: str) -> Expr:
385
- """Creates a new expression representing a UTF8 literal value."""
+ """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
+ """
389
if isinstance(value, str):
390
value = pa.scalar(value, type=pa.string())
391
return Expr(expr_internal.Expr.literal(value))
0 commit comments