René's URL Explorer Experiment


Title: feat: ADBC-backed Spark DataSource for DataFusion table providers by timsaucer · Pull Request #111 · apache/datafusion-java · GitHub

Open Graph Title: feat: ADBC-backed Spark DataSource for DataFusion table providers by timsaucer · Pull Request #111 · apache/datafusion-java

X Title: feat: ADBC-backed Spark DataSource for DataFusion table providers by timsaucer · Pull Request #111 · apache/datafusion-java

Description: Which issue does this PR close? Closes #112. Rationale for this change Spark users want to read DataFusion TableProvider data as a native Spark DataSourceV2. Rather than a bespoke per-operation JNI surface, this places the native boundary at a standard ADBC driver: Spark talks to the upstream arrow-adbc Java driver manager (adbc-core + adbc-driver-jni), which loads a native DataFusion ADBC cdylib. This reuses the upstream ADBC bindings instead of reproducing them, and keeps batches zero-copy on the cluster-provided Arrow. What changes are included in this PR? Spark connector (spark/) — a DataSourceV2 registered as the adbc-datafusion format: AdbcDatafusionTableProvider: schema probed once on the driver via AdbcConnection.getTableSchema. Projection / filter / limit pushed into the scan as a Substrait plan, with a SQL fallback path. Multi-partition reads via executePartitioned / readPartition; target_partitions option tunes scan parallelism. Per-executor AdbcConnectionPool caches the AdbcDatabase per driver+options key; per-task connection (level 1) is the safe default, connection sharing (level 2) is gated off by default. Batches imported zero-copy as ArrowColumnVector on the cluster-provided Arrow. Example driver (examples/adbc-datafusion-driver/) — a DataFusion ADBC cdylib exercising the full stack, with a PySpark end-to-end script and partitioning tests. Docs — ADBC-to-Spark partitioning guidance and connector notes. Are these changes tested? Yes — 19/19 passing locally. Unit (no native driver): AdbcConnectionPoolTest (8) — per-executor cache sharing + concurrency. AdbcOptionsTest (4) — option decoding / cache key. SubstraitPlanTest (3) — projection/filter/limit pushdown encoding. End-to-end (AdbcSourceTest, 4 tests) — verified against the example DataFusion ADBC cdylib built from examples/adbc-datafusion-driver, with the adbc-snapshot profile (arrow-adbc 0.24-SNAPSHOT). Full stack: Spark DataSourceV2 → arrow-adbc JNI driver manager → DataFusion ADBC cdylib → custom provider: projectionPushdown, filterPushdown — Substrait pushdown through the driver. fullScanAcrossPartitions — the provider's 3 partitions surface as 3 Spark input partitions (multi-partition executePartitioned/readPartition). providerRegisteredOncePerExecutor — across local[8] slots the pool builds exactly one native database (ContextInit runs once), each task opening its own connection. The test is gated on -Dadbc.example.driver.path; absent the cdylib it is skipped, so CI stays green without the native artifact. The example driver also ships pyspark_e2e.py and tests/partitions.rs. Are there any user-facing changes? Yes — a new adbc-datafusion Spark data source format and its options (driver, table, target_partitions, ...). Additive; no changes to existing public APIs. Documentation is included.

Open Graph Description: Which issue does this PR close? Closes #112. Rationale for this change Spark users want to read DataFusion TableProvider data as a native Spark DataSourceV2. Rather than a bespoke per-operation J...

X Description: Which issue does this PR close? Closes #112. Rationale for this change Spark users want to read DataFusion TableProvider data as a native Spark DataSourceV2. Rather than a bespoke per-operation J...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

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:b2a00f38-db5c-3ecc-6259-90c4739878c9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id944A:279C41:1C80EE:28D319:6B046823
html-safe-noncef2ef475184f562dabbd4fd87ef948622c76850f180bef118d680764dce8e1e64
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDRBOjI3OUM0MToxQzgwRUU6MjhEMzE5OjZCMDQ2ODIzIiwidmlzaXRvcl9pZCI6IjgzOTc2MDM5MDk1ODExNzA3MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacae11b95ac6e0149a44263842710787c9206f73cdf4bfe7650489dc4dffcc8f67
hovercard-subject-tagpull_request:3966065139
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/111/files
twitter:imagehttps://avatars.githubusercontent.com/u/24943992?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/24943992?s=400&v=4
og:image:altWhich issue does this PR close? Closes #112. Rationale for this change Spark users want to read DataFusion TableProvider data as a native Spark DataSourceV2. Rather than a bespoke per-operation J...
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/111/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F111%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%2F111%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/111/files
Reloadhttps://github.com/apache/datafusion-java/pull/111/files
Reloadhttps://github.com/apache/datafusion-java/pull/111/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
timsaucerhttps://github.com/timsaucer
apache:mainhttps://github.com/apache/datafusion-java/tree/main
timsaucer:feat/adbc-spark-connectorhttps://github.com/timsaucer/datafusion-java/tree/feat/adbc-spark-connector
Conversation 2 https://github.com/apache/datafusion-java/pull/111
Commits 5 https://github.com/apache/datafusion-java/pull/111/commits
Checks 6 https://github.com/apache/datafusion-java/pull/111/checks
Files changed https://github.com/apache/datafusion-java/pull/111/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/111/files
feat: ADBC-backed Spark DataSource for DataFusion table providers https://github.com/apache/datafusion-java/pull/111/files#top
Show all changes 5 commits https://github.com/apache/datafusion-java/pull/111/files
60a824b feat: ADBC-backed Spark DataSource for DataFusion table providers timsaucer Jun 30, 2026 https://github.com/apache/datafusion-java/pull/111/commits/60a824bc37d174cbfd5328897f3d9d9229954e05
ff9a205 feat(spark): cast non-Spark-native Arrow types source-side in ADBC scan timsaucer Jul 1, 2026 https://github.com/apache/datafusion-java/pull/111/commits/ff9a205d10e74cfe40a82e8db72a8e9477c0197d
3ecb971 fix(spark): apply casts on count()/empty-projection scans timsaucer Jul 1, 2026 https://github.com/apache/datafusion-java/pull/111/commits/3ecb9715d2bdd9f48f83b0bf48804dbf57ff7f40
390691b fix(spark): cast FixedSizeList to a variable List for Spark timsaucer Jul 1, 2026 https://github.com/apache/datafusion-java/pull/111/commits/390691bcc9a1f5633317c1ddb3d919e813fd0f34
9f6e89d refactor(spark): derive schema, cast decision, and cast target from o… timsaucer Jul 1, 2026 https://github.com/apache/datafusion-java/pull/111/commits/9f6e89d24c595f93a70032ca62865719080fa985
Clear filters https://github.com/apache/datafusion-java/pull/111/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/111/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/111/files
.gitignore https://github.com/apache/datafusion-java/pull/111/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
adbc-spark-connector.md https://github.com/apache/datafusion-java/pull/111/files#diff-fdd4f851d4acfaeed6c83e6c1907cc05cb3baa69764e15e787847c2a9dbd4651
index.md https://github.com/apache/datafusion-java/pull/111/files#diff-c5d556935b075b3f69ce1807990a7d6a6c59e8ecb075ffdceb6d96bdea1e1ec0
Cargo.toml https://github.com/apache/datafusion-java/pull/111/files#diff-6b1ba834bfefea0c401ea34597b20e4b952f15ba6020b839932aabfc125079a7
PARTITIONS.md https://github.com/apache/datafusion-java/pull/111/files#diff-b784a2044749c43dab436f3b2fbd1ffb6f80ebc8c385d543e0883d00acfb4f70
README.md https://github.com/apache/datafusion-java/pull/111/files#diff-0502b394dd493ba20c5250160a2def8f5176cf2189dcecbf8eea04de734d11aa
pyspark_e2e.py https://github.com/apache/datafusion-java/pull/111/files#diff-513aca840f873bb0ab4f94753b66a734eaa65fed507dad7370dffac8128f19f1
lib.rs https://github.com/apache/datafusion-java/pull/111/files#diff-878064e559f53cf8711d5b3bd06e0f37aaafaf505d796621d09584e5a99c61d9
provider.rs https://github.com/apache/datafusion-java/pull/111/files#diff-347c71268c486027df8f313868f47c8db310b9ac12a55f90e5f292dd484730ce
partitions.rs https://github.com/apache/datafusion-java/pull/111/files#diff-1faae04c0a89b6ad7adcdfc9a9bdd09fa2afd00cf443bb7bdb6bff5fd9b556b1
pom.xml https://github.com/apache/datafusion-java/pull/111/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
pom.xml https://github.com/apache/datafusion-java/pull/111/files#diff-35f8fb6076b9bd0cc660a1b57872c10d1900e2e4bcb576a6d04ab0ff0faf2b15
AdbcColumnarPartitionReader.java https://github.com/apache/datafusion-java/pull/111/files#diff-6ff83345e0b4fca86cc3037304565e4054d96acc50b67066d07313b37a044efd
AdbcConnectionPool.java https://github.com/apache/datafusion-java/pull/111/files#diff-dbbbb4e98e19b3c122395bb340ee2bb328a0f2b9430fefbe8f186eebcc9ba2a3
AdbcDatafusionTableProvider.java https://github.com/apache/datafusion-java/pull/111/files#diff-9ea6ce3c962129a3043eacc34778156c5700bb049acc8b91ddee1bb629fdf605
AdbcInputPartition.java https://github.com/apache/datafusion-java/pull/111/files#diff-f3cf0525b6c3519e744e1148423f2b983993a910b4998b0ab7bfce23fd08d298
AdbcOptions.java https://github.com/apache/datafusion-java/pull/111/files#diff-fd56fd02144c6d9ce61189caa652b3f757b752ca9573e69be15c83d5e84db680
AdbcPartitionReaderFactory.java https://github.com/apache/datafusion-java/pull/111/files#diff-568c9285e8d329b87293b9c36572f5dd3223caf0bd4c53e248d4a49f8fd3fef1
AdbcScanBuilder.java https://github.com/apache/datafusion-java/pull/111/files#diff-94e80acafa43bedc877f5e14040be21b6314abfddd8c2c4655f1ed0b8d8c14ce
AdbcScanImpl.java https://github.com/apache/datafusion-java/pull/111/files#diff-44269bdbc8c295d1c3f98c48f88ad9a859a5258ba4dc361808d7b4442f121263
AdbcTable.java https://github.com/apache/datafusion-java/pull/111/files#diff-8da83cbd233718c30ae8ab3a9e380abdaae993652c6b96c65db26e6669cf4f55
SchemaConverter.java https://github.com/apache/datafusion-java/pull/111/files#diff-de99711ddd590f031140cc46bd51fd726918dba0a8ef8e930818d51a9682fa7a
SqlQuery.java https://github.com/apache/datafusion-java/pull/111/files#diff-75557907e19737ae2735b3af75fd85e2e041b25febabb742fe016c5cd8ddaacf
SubstraitPlan.java https://github.com/apache/datafusion-java/pull/111/files#diff-5d60df45588c1f88e90fc729e2cb6d461487f9f9959b9ce110a7bbdf9d2b6b54
org.apache.spark.sql.sources.DataSourceRegister https://github.com/apache/datafusion-java/pull/111/files#diff-af108400df7b065078b5907d1b50c74fe0f7125dd52ec85f1933370a1cfcce88
AdbcConnectionPoolTest.java https://github.com/apache/datafusion-java/pull/111/files#diff-8c52d26b1799348a02bb167659bacbb7253eda3032a71fce4d1dedac9dc32366
AdbcOptionsTest.java https://github.com/apache/datafusion-java/pull/111/files#diff-00d7cecf480a72b46ffdc9643eb3a8d4469a0ae9dc18195500dd6ec738642dd7
AdbcSourceTest.java https://github.com/apache/datafusion-java/pull/111/files#diff-f89240b4b8068fa44b15b69efe71f7dd10e477d3f769d20eac45877e9f09672b
SchemaConverterTest.java https://github.com/apache/datafusion-java/pull/111/files#diff-6d5b38d91af38d05def414e34311b51f73918fb91452c3023b5dda69aa46a746
SqlQueryTest.java https://github.com/apache/datafusion-java/pull/111/files#diff-9f13fc4dfbe49d6e8150389f290c0f71a777d874d2458692a26bb815e7178c8a
SubstraitPlanTest.java https://github.com/apache/datafusion-java/pull/111/files#diff-9b882f485ba6bc0cabbf73153fef15b006f71c63f61e5696609e13bc7f5ba3f3
.gitignorehttps://github.com/apache/datafusion-java/pull/111/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
View file https://github.com/apache/datafusion-java/blob/9f6e89d24c595f93a70032ca62865719080fa985/.gitignore
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/111/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/111/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
https://github.com/apache/datafusion-java/pull/111/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947
docs/source/user-guide/adbc-spark-connector.mdhttps://github.com/apache/datafusion-java/pull/111/files#diff-fdd4f851d4acfaeed6c83e6c1907cc05cb3baa69764e15e787847c2a9dbd4651
View file https://github.com/apache/datafusion-java/blob/9f6e89d24c595f93a70032ca62865719080fa985/docs/source/user-guide/adbc-spark-connector.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/111/{{ revealButtonHref }}
docs/source/user-guide/index.mdhttps://github.com/apache/datafusion-java/pull/111/files#diff-c5d556935b075b3f69ce1807990a7d6a6c59e8ecb075ffdceb6d96bdea1e1ec0
View file https://github.com/apache/datafusion-java/blob/9f6e89d24c595f93a70032ca62865719080fa985/docs/source/user-guide/index.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/111/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/111/files#diff-c5d556935b075b3f69ce1807990a7d6a6c59e8ecb075ffdceb6d96bdea1e1ec0
https://github.com/apache/datafusion-java/pull/111/files#diff-c5d556935b075b3f69ce1807990a7d6a6c59e8ecb075ffdceb6d96bdea1e1ec0
https://github.com/apache/datafusion-java/pull/111/files#diff-c5d556935b075b3f69ce1807990a7d6a6c59e8ecb075ffdceb6d96bdea1e1ec0
examples/adbc-datafusion-driver/Cargo.tomlhttps://github.com/apache/datafusion-java/pull/111/files#diff-6b1ba834bfefea0c401ea34597b20e4b952f15ba6020b839932aabfc125079a7
View file https://github.com/apache/datafusion-java/blob/9f6e89d24c595f93a70032ca62865719080fa985/examples/adbc-datafusion-driver/Cargo.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/111/{{ revealButtonHref }}
Please reload this pagehttps://github.com/apache/datafusion-java/pull/111/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/111/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.