-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
De-functionalize query internals (#989)
* Rename `traverse/2` as `traverse_root/2` This just makes the intended use clearer. * Append `?` to `collect_pins_and_vars` This makes it clearer it's a boolean. * Alias `Kernel` as `K` This is in line with what we do elsewhere. * Slight format refactor * Change `query/1` to `query/2` This is the primary change. Now `query/2` takes the dataframe as an explicit argument intead of an implicit, unhygienized variable. * Add comment about non-obvious function wrap * Try to fix specs * Comment out broken test * Revert style changes * Revert all changes to `query.ex` * Revert all changes to `data_frame.ex` * Revert changes to `series.ex` * Add new/1 that returns a Backend.LazyFrame * Make is_column_pairs return false for structs * Add _with clauses * Add Access behaviour * Make all impls specify behaviour * Uncomment test * Add TODO for `is_non_struct_map` Co-authored-by: José Valim <[email protected]> * Change Backend.LazyFrame to Backend.QueryFrame * Rename files * Edit test internals for readability * Add docs Re-write the "Implementation details" section to reference the new functionality. * Doc tweaks * Remove an extra "the" * Reference the rewritten section in the `new/1` docs * Revert 1st sentence * Revert "Implementation details" * Add smaller addendum to that section * Add example to new/1 docs * Update lib/explorer/backend/query_frame.ex Co-authored-by: José Valim <[email protected]> * Fix punctuation --------- Co-authored-by: José Valim <[email protected]>
- Loading branch information
1 parent
4ae1a27
commit fe52352
Showing
6 changed files
with
176 additions
and
42 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
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
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
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
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
10 changes: 5 additions & 5 deletions
10
test/explorer/backend/lazy_frame_test.exs → test/explorer/backend/query_frame_test.exs
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