René's URL Explorer Experiment


Title: feat(session): register object_store backends on SessionContextBuilder by LantaoJin · Pull Request #73 · apache/datafusion-java · GitHub

Open Graph Title: feat(session): register object_store backends on SessionContextBuilder by LantaoJin · Pull Request #73 · apache/datafusion-java

X Title: feat(session): register object_store backends on SessionContextBuilder by LantaoJin · Pull Request #73 · apache/datafusion-java

Description: Which issue does this PR close? Closes #70 . Rationale for this change SessionContext.registerParquet(name, "s3://bucket/...") (and the read/register counterparts for CSV / NDJSON / Arrow / Avro) accept arbitrary path strings, but until this PR there was no Java surface to attach an object_store::ObjectStore to a URL scheme + bucket. As a result, s3://, gs://, and remote https:// paths fail with "No suitable object store found for ..." unless the embedder shells out to process-level environment variables — and even then, multi-tenant JVMs cannot give two contexts different credentials in the same process. DataFusion's Rust RuntimeEnv::register_object_store(url, store) already solves this end of the problem; the gap was purely in the Java surface above the JNI line. This PR closes it with a typed, per-context registration API: SessionContext ctx = SessionContext.builder() .registerObjectStore(ObjectStoreOptions.s3() .bucket("my-bucket").region("us-east-1") .accessKeyId("...").secretAccessKey("...").build()) .registerObjectStore(ObjectStoreOptions.s3() .bucket("other").endpoint("https://minio.internal:9000") .allowHttp(true).build()) .build(); ctx.registerParquet("orders", "s3://my-bucket/orders/"); What changes are included in this PR? Proto: new proto/object_store_options.proto Java API: new org.apache.datafusion.ObjectStoreOptions Native: new native/src/object_store.rs Cargo features: object-store-{aws,gcp,http}, with default = ["object-store-aws", "object-store-gcp", "object-store-http"] Build wiring: proto/object_store_options.proto Are these changes tested? 23 new tests across ObjectStoreOptionsTest and SessionContextObjectStoreTest Are there any user-facing changes? Yes, additive only, no breaking changes: New public class org.apache.datafusion.ObjectStoreOptions (sealed) with three concrete subtypes S3 / Gcs / Http and per-backend builders. Static factories: ObjectStoreOptions.s3(), .gcs(), .http(listingUrl). New public method SessionContextBuilder.registerObjectStore(ObjectStoreOptions). Generated protobuf classes ObjectStoreRegistration, S3Options, GcsOptions, HttpOptions under org.apache.datafusion.protobuf (consistent with existing options bundles). New repeated ObjectStoreRegistration object_stores = 8 field on SessionOptions (proto-3 forward compatible — older builds simply ignore it). Existing APIs are unchanged. The make build picks up object-store-{aws,gcp,http} Cargo features by default; downstream Rust builds that strip a feature trip a clear runtime error if a caller registers the missing backend.

Open Graph Description: Which issue does this PR close? Closes #70 . Rationale for this change SessionContext.registerParquet(name, "s3://bucket/...") (and the read/register counterparts for CSV / NDJSON / Arr...

X Description: Which issue does this PR close? Closes #70 . Rationale for this change SessionContext.registerParquet(name, "s3://bucket/...") (and the read/register counterparts for CSV / NDJS...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.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:02bda51d-e780-4c65-8fcf-052ed858a1e7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id990E:20EE9C:286F36:396626:6B046A3B
html-safe-nonce8eb5573536bca01ad826c8dd993cd19416a90c46638299ef7ec786028b795f77
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTBFOjIwRUU5QzoyODZGMzY6Mzk2NjI2OjZCMDQ2QTNCIiwidmlzaXRvcl9pZCI6IjY4NDI2OTAxNzM0OTE1MDU3MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9f0a57d3782f1533ef97e58d17a2331f85123504556a7b118ec0c889964ef4b0
hovercard-subject-tagpull_request:3715530857
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/73/files
twitter:imagehttps://avatars.githubusercontent.com/u/1853780?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1853780?s=400&v=4
og:image:altWhich issue does this PR close? Closes #70 . Rationale for this change SessionContext.registerParquet(name, "s3://bucket/...") (and the read/register counterparts for CSV / NDJSON / Arr...
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/73/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F73%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%2F73%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/73/files
Reloadhttps://github.com/apache/datafusion-java/pull/73/files
Reloadhttps://github.com/apache/datafusion-java/pull/73/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
LantaoJin:feat/register-object-storehttps://github.com/LantaoJin/datafusion-java/tree/feat/register-object-store
Conversation 1 https://github.com/apache/datafusion-java/pull/73
Commits 1 https://github.com/apache/datafusion-java/pull/73/commits
Checks 1 https://github.com/apache/datafusion-java/pull/73/checks
Files changed https://github.com/apache/datafusion-java/pull/73/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/73/files
feat(session): register object_store backends on SessionContextBuilder https://github.com/apache/datafusion-java/pull/73/files#top
Show all changes 1 commit https://github.com/apache/datafusion-java/pull/73/files
3c12ca9 feat(session): register object_store backends on SessionContextBuilder LantaoJin May 20, 2026 https://github.com/apache/datafusion-java/pull/73/commits/3c12ca934969306c981bf109cafbbeef769a7fd1
Clear filters https://github.com/apache/datafusion-java/pull/73/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/73/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/73/files
ObjectStoreOptions.java https://github.com/apache/datafusion-java/pull/73/files#diff-188360faa81b522c863846780c0b2540f554bad20081096b15f50906dbcbc806
SessionContextBuilder.java https://github.com/apache/datafusion-java/pull/73/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
ObjectStoreOptionsTest.java https://github.com/apache/datafusion-java/pull/73/files#diff-a0f7c68bf7069a3cac914c0093c760611ddb0808eb26b5419697ad53d8a707d9
SessionContextObjectStoreTest.java https://github.com/apache/datafusion-java/pull/73/files#diff-0c9b03d334e2d8f5f34ed09bf00b4ed9edc7afd8c2345ef5d0a87de16d81b1e7
Cargo.lock https://github.com/apache/datafusion-java/pull/73/files#diff-078f375cfc74d2a2bae74160d7469389a54227046a6daec4edb0481597ec2aa8
Cargo.toml https://github.com/apache/datafusion-java/pull/73/files#diff-a1571d177cbc44d96f49c8f29b6340febcee141a0e26833931bcd78c5441fb55
build.rs https://github.com/apache/datafusion-java/pull/73/files#diff-358ae2245aa2cd99768b0c568a07648d4c26c8cdd84b15cd6f0af2680ec85240
lib.rs https://github.com/apache/datafusion-java/pull/73/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
object_store.rs https://github.com/apache/datafusion-java/pull/73/files#diff-60d721b3add8d6d1ffafa3a30e1662c795e74d94cb838493b78808070e2f573c
object_store_options.proto https://github.com/apache/datafusion-java/pull/73/files#diff-204d33a65cfd1109fef6319e16956e2c171c6cb09b28571bb8422cb63350e0b8
session_options.proto https://github.com/apache/datafusion-java/pull/73/files#diff-0b48e973a751cd44663289ad7c1db4671e9262f89545cf6d4a518d774c1bd904
core/src/main/java/org/apache/datafusion/ObjectStoreOptions.javahttps://github.com/apache/datafusion-java/pull/73/files#diff-188360faa81b522c863846780c0b2540f554bad20081096b15f50906dbcbc806
View file https://github.com/LantaoJin/datafusion-java/blob/3c12ca934969306c981bf109cafbbeef769a7fd1/core/src/main/java/org/apache/datafusion/ObjectStoreOptions.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/73/{{ revealButtonHref }}
core/src/main/java/org/apache/datafusion/SessionContextBuilder.javahttps://github.com/apache/datafusion-java/pull/73/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
View file https://github.com/LantaoJin/datafusion-java/blob/3c12ca934969306c981bf109cafbbeef769a7fd1/core/src/main/java/org/apache/datafusion/SessionContextBuilder.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/73/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/73/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
https://github.com/apache/datafusion-java/pull/73/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
https://github.com/apache/datafusion-java/pull/73/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
https://github.com/apache/datafusion-java/pull/73/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
https://github.com/apache/datafusion-java/pull/73/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
https://github.com/apache/datafusion-java/pull/73/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
Please reload this pagehttps://github.com/apache/datafusion-java/pull/73/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/73/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.