Skip to content

Commit f4f2cbd

Browse files
committed
refactor: update sort order conversion to use expr_internal.SortExpr
1 parent 054c83c commit f4f2cbd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

python/datafusion/context.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
from ._internal import SessionConfig as SessionConfigInternal
4040
from ._internal import SessionContext as SessionContextInternal
4141
from ._internal import SQLOptions as SQLOptionsInternal
42+
from ._internal import expr as expr_internal
4243

4344
if TYPE_CHECKING:
4445
import pathlib
@@ -1177,8 +1178,8 @@ def execute(self, plan: ExecutionPlan, partitions: int) -> RecordBatchStream:
11771178
@staticmethod
11781179
def _convert_file_sort_order(
11791180
file_sort_order: Sequence[Sequence[SortKey]] | None,
1180-
) -> list[list[Any]] | None:
1181-
"""Convert nested ``SortKey`` sequences into raw sort representations.
1181+
) -> list[list[expr_internal.SortExpr]] | None:
1182+
"""Convert nested ``SortKey`` sequences into raw sort expressions.
11821183
11831184
Each ``SortKey`` can be a column name string, an ``Expr``, or a
11841185
``SortExpr`` and will be converted using

0 commit comments

Comments
 (0)