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

fix: modify SQL query and streamline DataFrame execution #171

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

loloxwg
Copy link
Contributor

@loloxwg loloxwg commented Sep 28, 2024

This pull request includes a change to the SQL query and the execution order in the main function of the examples/datafusion.rs file. The most important changes are as follows:

SQL Query Update:

  • Modified the SQL query from select * from music to select id from music to limit the columns retrieved. (examples/datafusion.rs, examples/datafusion.rsL240-R245)

Execution Order Adjustment:

  • Changed the execution order by combining the logical plan execution and table retrieval into a single step. (examples/datafusion.rs, examples/datafusion.rsL240-R245)

Changed the SQL query to select 'id' instead of '*'. This also rearranges the logical plan execution to directly get a DataFrame from logical plan execution.
@ethe ethe merged commit cb33516 into tonbo-io:main Sep 28, 2024
5 of 6 checks passed
@loloxwg loloxwg deleted the fix branch September 28, 2024 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants