Skip to content

Minor: Improve TableProvider document, and add ascii art #7759

New issue

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

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

Already on GitHub? # to your account

Merged
merged 2 commits into from
Oct 7, 2023

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Oct 6, 2023

Which issue does this PR close?

N/A

Rationale for this change

@comphead liked the ASCII art (#7747 (comment)) :) -- but seriously I would like to make it easier for DataFusion to be used -- both the specifics of how DataFusion works as well as more general database principles.

What changes are included in this PR?

  1. Updated docs for TableProvider::scan, including details about filter, projection and limit pushdown (with a diagram!)

Are these changes tested?

doc tests

Are there any user-facing changes?

Docs only

/// The table provider will be usually responsible of grouping
/// the source data into partitions that can be efficiently
/// parallelized or distributed.
/// Create an [`ExecutionPlan`] for scanning the table with optionally
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@github-actions github-actions bot added the core Core DataFusion crate label Oct 7, 2023
@alamb
Copy link
Contributor Author

alamb commented Oct 7, 2023

Thank you @liukun4515 and @comphead

@alamb alamb merged commit fb37105 into apache:main Oct 7, 2023
@alamb alamb added documentation Improvements or additions to documentation devrel labels Oct 7, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
core Core DataFusion crate documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants