Skip to content

refactor: simplify json_shredding example by using ListingTable#17369

Merged
adriangb merged 1 commit into
apache:mainfrom
waynexia:simplify-json-shredding-example
Sep 2, 2025
Merged

refactor: simplify json_shredding example by using ListingTable#17369
adriangb merged 1 commit into
apache:mainfrom
waynexia:simplify-json-shredding-example

Conversation

@waynexia

@waynexia waynexia commented Sep 1, 2025

Copy link
Copy Markdown
Member

Which issue does this PR close?

  • Closes #.

Rationale for this change

Trying to prove "why DataSourceExec is not a good abstraction for end users" when investigating #17242. And I found this file is one of the few references of that trait.

What changes are included in this PR?

Replace the manually implemented TableProvider using DataSourceExec with the existing infrastructure ListingTable

Are these changes tested?

Yes, I've run this example after those changes

Are there any user-facing changes?

No

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
@adriangb

adriangb commented Sep 2, 2025

Copy link
Copy Markdown
Contributor

Yes, I've run this example after those changes

Is the output the same?

@waynexia

waynexia commented Sep 2, 2025

Copy link
Copy Markdown
Member Author

Yes, I've run this example after those changes

Is the output the same?

Yes, I've pair compared the analyze output (as well as others

@adriangb
adriangb merged commit da2f9e1 into apache:main Sep 2, 2025
28 checks passed
@adriangb

adriangb commented Sep 2, 2025

Copy link
Copy Markdown
Contributor

Thanks!

@waynexia
waynexia deleted the simplify-json-shredding-example branch September 2, 2025 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants