René's URL Explorer Experiment


Title: feat: support scan planning and pushdown for Java table providers by wirybeaver · Pull Request #119 · apache/datafusion-java · GitHub

Open Graph Title: feat: support scan planning and pushdown for Java table providers by wirybeaver · Pull Request #119 · apache/datafusion-java

X Title: feat: support scan planning and pushdown for Java table providers by wirybeaver · Pull Request #119 · apache/datafusion-java

Description: Which issue does this PR close? Closes #118. Rationale for this change Java table providers currently receive no physical scan request. A selective source cannot choose an access path from pushed predicates, read only projected columns, or distinguish exact filtering from candidate pruning. Expose that existing DataFusion contract while keeping the Java/JNI binding thin and source-agnostic. What changes are included in this PR? Add scanWithArgs(ScanArgs) and supportsFiltersPushdown to TableProvider. Providers can report pushdown support per filter and use the requested projection, filters and limit to build an ExecutionPlan without opening a reader. The default scanWithArgs defers to the existing scan(allocator) at execution time. DataFusion optimizer -> Java filter capabilities DataFusion planning -> scanWithArgs(ScanArgs) -> ExecutionPlan DataFusion execution -> plan.execute(partition, allocator) -> fresh ArrowReader -> Arrow C stream -> Rust operators DataFusion still owns residual filtering and limit placement. Providers may return the requested projected schema or the full registered schema. The adapter projects full-schema batches when needed, preserving row counts even for zero-column results. Source-specific access-path decisions stay in provider implementations; no storage SDK or DataFusion Rust-core change is introduced. This remains a bounded, single-partition leaf-scan API, not a binding for arbitrary child-consuming physical operators. Are these changes tested? A Java/JNI/Arrow integration harness registers an in-memory selective source and inspects its planned requests and actual reads. EXPLAIN plans without opening the source; execution requests only the matching row and projected column. Inexact and unsupported predicates retain residual evaluation before LIMIT, exact predicates permit limit pushdown, and independent scans keep separate requests and readers. The existing full-schema provider path is exercised through the same native boundary. The source is synthetic: this does not establish performance or correctness against an external storage service. Are there any user-facing changes? The new TableProvider methods, ScanArgs and ExecutionPlan are additive. ExecutionPlan.execute(int partition, BufferAllocator allocator) receives partition 0 in this single-partition implementation. Existing TableProvider and SimpleTableProvider implementations need no changes. The provider guide documents projection, filter, limit, threading and reader-ownership contracts.

Open Graph Description: Which issue does this PR close? Closes #118. Rationale for this change Java table providers currently receive no physical scan request. A selective source cannot choose an access path from pushed p...

X Description: Which issue does this PR close? Closes #118. Rationale for this change Java table providers currently receive no physical scan request. A selective source cannot choose an access path from pushed p...

Opengraph URL: https://github.com/apache/datafusion-java/pull/119

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3b201b53-05d4-82f2-2a7e-1559f0e4656b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id991E:279C41:1C9A4B:28F6D4:6B046829
html-safe-noncee42b59bf99078d5ac8d7706c6ff0b3212527b686c00727ba64435006bbaa08a6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTFFOjI3OUM0MToxQzlBNEI6MjhGNkQ0OjZCMDQ2ODI5IiwidmlzaXRvcl9pZCI6IjEyMzM0Mjk0NjE0ODAwMDc3MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbf5b190979d2e33c9ba68a684bfa00f8121939b1469e814f4fb4536e2a2aff59
hovercard-subject-tagpull_request:5058761769
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/apache/datafusion-java/pull/119/files
twitter:imagehttps://avatars.githubusercontent.com/u/19251177?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19251177?s=400&v=4
og:image:altWhich issue does this PR close? Closes #118. Rationale for this change Java table providers currently receive no physical scan request. A selective source cannot choose an access path from pushed p...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/apache/datafusion-java git https://github.com/apache/datafusion-java.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id1237105117
octolytics-dimension-repository_nwoapache/datafusion-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1237105117
octolytics-dimension-repository_network_root_nwoapache/datafusion-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseca4d07a7cef4e4b75f821dc25e7300d80c1450a9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/datafusion-java/pull/119/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F119%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F119%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=apache%2Fdatafusion-java
Reloadhttps://github.com/apache/datafusion-java/pull/119/files
Reloadhttps://github.com/apache/datafusion-java/pull/119/files
Reloadhttps://github.com/apache/datafusion-java/pull/119/files
apachehttps://github.com/apache
datafusion-javahttps://github.com/apache/datafusion-java
Codehttps://github.com/apache/datafusion-java
Issues10 (10)https://github.com/apache/datafusion-java/issues
Pull requests10 (10)https://github.com/apache/datafusion-java/pulls
Discussionshttps://github.com/apache/datafusion-java/discussions
Actionshttps://github.com/apache/datafusion-java/actions
Security and qualityhttps://github.com/apache/datafusion-java/security
Insightshttps://github.com/apache/datafusion-java/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fapache%2Fdatafusion-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fapache%2Fdatafusion-java%2Fissues%2Fnew%2Fchoose
andygrovehttps://github.com/andygrove
apache:mainhttps://github.com/apache/datafusion-java/tree/main
wirybeaver:feat/java-table-scan-pushdownhttps://github.com/wirybeaver/datafusion-java/tree/feat/java-table-scan-pushdown
Conversation 21 https://github.com/apache/datafusion-java/pull/119
Commits 3 https://github.com/apache/datafusion-java/pull/119/commits
Checks 6 https://github.com/apache/datafusion-java/pull/119/checks
Files changed https://github.com/apache/datafusion-java/pull/119/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/119/files
feat: support scan planning and pushdown for Java table providers https://github.com/apache/datafusion-java/pull/119/files#top
Show all changes 3 commits https://github.com/apache/datafusion-java/pull/119/files
c1869ed feat: support scan planning and pushdown for Java table providers wirybeaver Oct 28, 2026 https://github.com/apache/datafusion-java/pull/119/commits/c1869ed639aedda512062b0970f48e9d8d8d2721
67bf867 fix: keep the full table scan a required provider method wirybeaver Nov 21, 2026 https://github.com/apache/datafusion-java/pull/119/commits/67bf867668073c0c06273c3ff1b02af32ec990b3
83b8d75 test: reject out-of-order projected columns from a table provider wirybeaver Nov 22, 2026 https://github.com/apache/datafusion-java/pull/119/commits/83b8d755c88651e526526eafd044d85f960c3cf0
Clear filters https://github.com/apache/datafusion-java/pull/119/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/119/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/119/files
ExecutionPlan.java https://github.com/apache/datafusion-java/pull/119/files#diff-285a0c088d042cafb034b252d60ac979a952162162568a495ba6194ecf3d85e9
ScanArgs.java https://github.com/apache/datafusion-java/pull/119/files#diff-619bfef5941661567b110bef32f44732b04dcc0e52d72d5c153bbbb0908b8cea
SessionContext.java https://github.com/apache/datafusion-java/pull/119/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
TableProvider.java https://github.com/apache/datafusion-java/pull/119/files#diff-55d0e8af086be99343cdf3d3a1a9cecebda447819176948fd3d558086c2f76a3
JniBridge.java https://github.com/apache/datafusion-java/pull/119/files#diff-d8782084eee38e7e495ad13caf3a16d2c19b6eb7a1c290c9423e4d7224a5f2f3
TableProviderScanArgsTest.java https://github.com/apache/datafusion-java/pull/119/files#diff-5ab666ab346d8ededd456d735a707ae32ec85826fe7e55c3214cca1940537ed3
TableProviderTest.java https://github.com/apache/datafusion-java/pull/119/files#diff-0b44aed9776c150f2ac2ef7046c201b255911f6825677521fecd3075ad8da2c1
table-provider.md https://github.com/apache/datafusion-java/pull/119/files#diff-9686d6b2fe834eeb5dd21441980f50e082fa03b3b5d502d43a3e202e7796d74f
build.rs https://github.com/apache/datafusion-java/pull/119/files#diff-358ae2245aa2cd99768b0c568a07648d4c26c8cdd84b15cd6f0af2680ec85240
lib.rs https://github.com/apache/datafusion-java/pull/119/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
table_provider.rs https://github.com/apache/datafusion-java/pull/119/files#diff-38d9ab737d35717f547d476901756a0cdcbb27d73b954291203bd195abfca194
table_scan_options.proto https://github.com/apache/datafusion-java/pull/119/files#diff-8ea9a72c69cafdcb2870d75edd79e7d2078a56c3a7df2dd6a97671b1ab39d3d8
core/src/main/java/org/apache/datafusion/ExecutionPlan.javahttps://github.com/apache/datafusion-java/pull/119/files#diff-285a0c088d042cafb034b252d60ac979a952162162568a495ba6194ecf3d85e9
View file https://github.com/wirybeaver/datafusion-java/blob/83b8d755c88651e526526eafd044d85f960c3cf0/core/src/main/java/org/apache/datafusion/ExecutionPlan.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/119/{{ revealButtonHref }}
core/src/main/java/org/apache/datafusion/ScanArgs.javahttps://github.com/apache/datafusion-java/pull/119/files#diff-619bfef5941661567b110bef32f44732b04dcc0e52d72d5c153bbbb0908b8cea
View file https://github.com/wirybeaver/datafusion-java/blob/83b8d755c88651e526526eafd044d85f960c3cf0/core/src/main/java/org/apache/datafusion/ScanArgs.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/119/{{ revealButtonHref }}
andygrovehttps://github.com/andygrove
Nov 21, 2026https://github.com/apache/datafusion-java/pull/119/files#r4654206419
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/apache/datafusion-java/pull/119/files
pgwhalenhttps://github.com/pgwhalen
Nov 21, 2026https://github.com/apache/datafusion-java/pull/119/files#r4654541212
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/apache/datafusion-java/pull/119/files
pgwhalenhttps://github.com/pgwhalen
Nov 21, 2026https://github.com/apache/datafusion-java/pull/119/files#r4654561483
Please reload this pagehttps://github.com/apache/datafusion-java/pull/119/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
here is my working drafthttps://github.com/pgwhalen/datafusion-java/pull/1/changes
Please reload this pagehttps://github.com/apache/datafusion-java/pull/119/files
wirybeaverhttps://github.com/wirybeaver
Nov 21, 2026https://github.com/apache/datafusion-java/pull/119/files#r4654721666
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/apache/datafusion-java/pull/119/files
core/src/main/java/org/apache/datafusion/SessionContext.javahttps://github.com/apache/datafusion-java/pull/119/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
View file https://github.com/wirybeaver/datafusion-java/blob/83b8d755c88651e526526eafd044d85f960c3cf0/core/src/main/java/org/apache/datafusion/SessionContext.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/119/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/119/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
https://github.com/apache/datafusion-java/pull/119/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
core/src/main/java/org/apache/datafusion/TableProvider.javahttps://github.com/apache/datafusion-java/pull/119/files#diff-55d0e8af086be99343cdf3d3a1a9cecebda447819176948fd3d558086c2f76a3
View file https://github.com/wirybeaver/datafusion-java/blob/83b8d755c88651e526526eafd044d85f960c3cf0/core/src/main/java/org/apache/datafusion/TableProvider.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/119/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/119/files#diff-55d0e8af086be99343cdf3d3a1a9cecebda447819176948fd3d558086c2f76a3
https://github.com/apache/datafusion-java/pull/119/files#diff-55d0e8af086be99343cdf3d3a1a9cecebda447819176948fd3d558086c2f76a3
core/src/main/java/org/apache/datafusion/internal/JniBridge.javahttps://github.com/apache/datafusion-java/pull/119/files#diff-d8782084eee38e7e495ad13caf3a16d2c19b6eb7a1c290c9423e4d7224a5f2f3
View file https://github.com/wirybeaver/datafusion-java/blob/83b8d755c88651e526526eafd044d85f960c3cf0/core/src/main/java/org/apache/datafusion/internal/JniBridge.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/119/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/119/files#diff-d8782084eee38e7e495ad13caf3a16d2c19b6eb7a1c290c9423e4d7224a5f2f3
https://github.com/apache/datafusion-java/pull/119/files#diff-d8782084eee38e7e495ad13caf3a16d2c19b6eb7a1c290c9423e4d7224a5f2f3
https://github.com/apache/datafusion-java/pull/119/files#diff-d8782084eee38e7e495ad13caf3a16d2c19b6eb7a1c290c9423e4d7224a5f2f3
https://github.com/apache/datafusion-java/pull/119/files#diff-d8782084eee38e7e495ad13caf3a16d2c19b6eb7a1c290c9423e4d7224a5f2f3
https://github.com/apache/datafusion-java/pull/119/files#diff-d8782084eee38e7e495ad13caf3a16d2c19b6eb7a1c290c9423e4d7224a5f2f3
Please reload this pagehttps://github.com/apache/datafusion-java/pull/119/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/119/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.