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 f591617 commit 31a648fCopy full SHA for 31a648f
python/datafusion/expr.py
@@ -309,7 +309,7 @@ def expr_list_to_raw_expr_list(
309
310
311
def sort_or_default(e: Expr | SortExpr) -> expr_internal.SortExpr:
312
- """Return a :class:`SortExpr`, defaulting attributes when necessary."""
+ """Helper function to return a default Sort if an Expr is provided."""
313
if isinstance(e, SortExpr):
314
return e.raw_sort
315
return SortExpr(e, ascending=True, nulls_first=True).raw_sort
0 commit comments