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
Support string column identifiers for sort/aggregate/window and stricter Expr validation (apache#1221)
* refactor: improve DataFrame expression handling, type checking, and docs
- Refactor expression handling and `_simplify_expression` for stronger
type checking and clearer error handling
- Improve type annotations for `file_sort_order` and `order_by` to
support string inputs
- Refactor DataFrame `filter` method to better validate predicates
- Replace internal error message variable with public constant
- Clarify usage of `col()` and `column()` in DataFrame examples
* refactor: unify expression and sorting logic; improve docs and error handling
- Update `order_by` handling in Window class for better type support
- Improve type checking in DataFrame expression handling
- Replace `Expr`/`SortExpr` with `SortKey` in file_sort_order and
related functions
- Simplify file_sort_order handling in SessionContext
- Rename `_EXPR_TYPE_ERROR` → `EXPR_TYPE_ERROR` for consistency
- Clarify usage of `col()` vs `column()` in DataFrame examples
- Enhance documentation for file_sort_order in SessionContext
* feat: add ensure_expr helper for validation; refine expression handling, sorting, and docs
- Introduce `ensure_expr` helper and improve internal expression
validation
- Update error messages and tests to consistently use `EXPR_TYPE_ERROR`
- Refactor expression handling with `_to_raw_expr`, `_ensure_expr`, and
`SortKey`
- Improve type safety and consistency in sort key definitions and file
sort order
- Add parameterized parquet sorting tests
- Enhance DataFrame docstrings with clearer guidance and usage examples
- Fix minor typos and error message clarity
* Refactor and enhance expression handling, test coverage, and documentation
- Introduced `ensure_expr_list` to validate and flatten nested
expressions, treating strings as atomic
- Updated expression utilities to improve consistency across aggregation
and window functions
- Consolidated and expanded parameterized tests for string equivalence
in ranking and window functions
- Exposed `EXPR_TYPE_ERROR` for consistent error messaging across
modules and tests
- Improved internal sort logic using `expr_internal.SortExpr`
- Clarified expectations for `join_on` expressions in documentation
- Standardized imports and improved test clarity for maintainability
* refactor: update docstring for sort_or_default function to clarify its purpose
* fix Ruff errors
* refactor: update type hints to use typing.Union for better clarity and consistency
* fix Ruff errors
* refactor: simplify type hints by removing unnecessary imports for type checking
* refactor: update type hints for rex_type and types methods to improve clarity
* refactor: remove unnecessary type ignore comments from rex_type and types methods
* docs: update section title for clarity on DataFrame method arguments
* docs: clarify description of DataFrame methods accepting column names
* docs: add note to clarify function documentation reference for DataFrame methods
* docs: remove outdated information about predicate acceptance in DataFrame class
* refactor: simplify type hint for expr_list parameter in expr_list_to_raw_expr_list function
* docs: clarify usage of datafusion.col and datafusion.lit in DataFrame method documentation
* docs: clarify usage of col() and lit() in DataFrame filter examples
* Fix ruff errors
0 commit comments