Based on PR #999: Add SQL support for multiple DataFrames#1150
Open
matreyes wants to merge 4 commits intoelixir-explorer:mainfrom
Open
Based on PR #999: Add SQL support for multiple DataFrames#1150matreyes wants to merge 4 commits intoelixir-explorer:mainfrom
matreyes wants to merge 4 commits intoelixir-explorer:mainfrom
Conversation
Implements simplified SQL API proposed by Jose Valim that allows executing SQL queries across multiple DataFrames using a map. Features: - New sql/2 function accepts a map of table names to DataFrames - Backward compatible with existing sql/2 and sql/3 for single DataFrame - Uses Polars SQLContext internally for query execution - Supports JOINs, LEFT JOINs, aggregations, and other SQL operations - Comprehensive test suite with 20 tests Based on PR elixir-explorer#999 but simplified per Jose Valim's suggestion for a cleaner API.
Remove backward-compatible sql/2 and sql/3 for single DataFrame. Now sql/2 consistently accepts a map of table names to DataFrames, making the API simpler and more consistent.
- Add callback to Explorer.Backend.DataFrame behaviour - Implement in Explorer.PolarsBackend.DataFrame and LazyFrame - Remove callback from Explorer.Backend - Update sql/2 to pick backend from first DataFrame or use default for empty tables
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi team!
I have an use case for SQL API, so wondered if you are interested in reevaluate the PR #999, but with the API proposed by @josevalim that allows executing SQL queries across multiple DataFrames using a map.