Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Execute Python queries #575

Merged
merged 6 commits into from
Aug 1, 2023
Merged

feat: Execute Python queries #575

merged 6 commits into from
Aug 1, 2023

Conversation

bjchambers
Copy link
Collaborator

This removes the ability to inspect the prepared data from the Python FFI. Instead, the Python FFI now has an execute method allowing you to inspect the results of an expression, including the bare table.

This changes the execute methods a bit to have a simpler API to interface with.

This relies on pushing "in-memory" data into the DataContext, which is very brittle and hacky. For example, it currently only supports adding data once, and requires that the schemas line up.

This removes the ability to inspect the prepared data from the
Python FFI. Instead, the Python FFI now has an `execute` method
allowing you to inspect the results of an expression, including
the bare table.

This changes the execute methods a bit to have a simpler API to
interface with.

This relies on pushing "in-memory" data into the `DataContext`,
which is very brittle and hacky. For example, it currently only
supports adding data once, and requires that the schemas line up.
@cla-bot cla-bot bot added the cla-signed Set when all authors of a PR have signed our CLA label Jul 31, 2023
@github-actions github-actions bot added enhancement New feature or request sparrow labels Jul 31, 2023
crates/sparrow-compiler/src/data_context.rs Show resolved Hide resolved
crates/sparrow-session/src/session.rs Show resolved Hide resolved
sparrow-py/pytests/math_test.py Outdated Show resolved Hide resolved
sparrow-py/pytests/math_test.py Outdated Show resolved Hide resolved
sparrow-py/pytests/table_test.py Show resolved Hide resolved
@jordanrfrazier
Copy link
Collaborator

Approving to unblock since much will likely change anyway, will take a closer look in a couple hours

@bjchambers bjchambers added this pull request to the merge queue Aug 1, 2023
Merged via the queue into main with commit a81973e Aug 1, 2023
30 checks passed
@bjchambers bjchambers deleted the sparrow-py-execute branch August 1, 2023 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed Set when all authors of a PR have signed our CLA enhancement New feature or request sparrow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants