-
Notifications
You must be signed in to change notification settings - Fork 847
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RecordBatch
normalization (flattening) (#6758)
* Added set up for the example of flattening from pyarrow. * Logic for recursive normalizer with a base normalize function, based on pola-rs. * Added recursive normalize function for `Schema`, and started building iterative function for `RecordBatch`. Not sure which one is better currently. * Built out a bit more of the iterative normalize. * Fixed normalize function for `RecordBatch`. Adjusted test case to match the example from PyArrow. * Added tests for `Schema` normalization. Partial tests for `RecordBatch`. * Removed stray comments. * Commenting out exclamation field. * Fixed test for `RecordBatch`. * Formatting. * Additional documentation for `normalize` functions. Switched `Schema` normalization to iterative approach. * Forgot to push to the columns in the else case. * Adjusted the documentation to include the parameters. * Formatting. * Edited examples to not be ran as tests. * Adjusted based on some of the suggestions. Simplified the matching and if statements, simplified the VecDeque fields. * Additional test cases for List and FixedSizeList in Schema. * Additional test cases for deeply nested normalization. * Suggestions from Jefffrey on the descriptions and stack initialization. * Forgot parenthesis. --------- Co-authored-by: nglime <[email protected]>
- Loading branch information
Showing
2 changed files
with
768 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.