René's URL Explorer Experiment


Title: feat(session): expose disableSpill and maxTempDirectorySize on SessionContextBuilder by LantaoJin · Pull Request #84 · apache/datafusion-java · GitHub

Open Graph Title: feat(session): expose disableSpill and maxTempDirectorySize on SessionContextBuilder by LantaoJin · Pull Request #84 · apache/datafusion-java

X Title: feat(session): expose disableSpill and maxTempDirectorySize on SessionContextBuilder by LantaoJin · Pull Request #84 · apache/datafusion-java

Description: Which issue does this PR close? Closes #83 . Rationale for this change PR #28 added tempDirectory(String) as the only Java surface for DataFusion's RuntimeEnvBuilder disk-manager knobs. Two real gaps remain — both reachable on the Rust side, neither reachable from Java today, and neither reachable via setOption(...) because they live on RuntimeEnv construction rather than the datafusion.* config namespace (the native side already explicitly rejects datafusion.runtime.* keys, for the same reason that motivated the existing typed memoryLimit(...) / tempDirectory(...) setters): No way to disable spill entirely. Useful for memory-only execution profiles or environments without writable disk. No way to cap the spill volume size. A runaway sort or hash-aggregate can fill the spill disk — on a multi-tenant node, a co-tenant outage rather than just a query failure. This matches the --disk-limit flag that datafusion-cli ships. Issue #83 originally included a third setter, tempDirectories(List), but a follow-up survey of the upstream code, CLI, docs, examples, and Python binding showed multi-directory mode is a programmatic-only escape hatch on DiskManagerBuilder: not exposed by RuntimeEnvBuilder itself, not used by datafusion-cli, not in configs.md, not in any example. It can ship later if a real user files an issue with a use case; punting it keeps this PR focused on the two setters with concrete motivation. What changes are included in this PR? New setters on SessionContextBuilder: disableSpill(). maxTempDirectorySize(long) Proto: new DiskManagerOptions message (optional disabled, optional max_temp_directory_size) added to session_options.proto. Native: one new arm in createSessionContextWithOptions that decodes DiskManagerOptions and routes through with_disk_manager_builder(Disabled) / with_max_temp_directory_size. Are these changes tested? Yes. 9 new tests in SessionContextBuilderTest Are there any user-facing changes? Yes, additive only — no breaking changes. Two new public setters on SessionContextBuilder. Existing callers using only tempDirectory(String) see no behaviour change and produce identical wire bytes. The new mutually-exclusive combination throws IllegalStateException at build() time (not at the setter call), matching the setOption runtime-key pattern. No Javadoc / user-guide updates in this PR; the new setters' Javadoc carries the v1 surface description, consistent with how recent additions (e.g. cacheManager, registerObjectStore) shipped.

Open Graph Description: Which issue does this PR close? Closes #83 . Rationale for this change PR #28 added tempDirectory(String) as the only Java surface for DataFusion's RuntimeEnvBuilder disk-manager knobs. Two r...

X Description: Which issue does this PR close? Closes #83 . Rationale for this change PR #28 added tempDirectory(String) as the only Java surface for DataFusion's RuntimeEnvBuilder disk-manager knobs. T...

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

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:13b67a79-9f04-ac6d-efa1-ae8a37d9dfc5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id934E:1F9F68:4214F1:5AF292:6B046F2F
html-safe-noncecae73ff860d46d0dd2ebc49aa2f2e5b7f3e7db47ec5bb24854d62b537f560d7e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzRFOjFGOUY2ODo0MjE0RjE6NUFGMjkyOjZCMDQ2RjJGIiwidmlzaXRvcl9pZCI6IjgxNjkxNDQ3MjkyNzIwODYzMTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6b41ebbc0082a90601e96e6772a607c89ab9e4db0772c53ed41c67115bcdf342
hovercard-subject-tagpull_request:3722457375
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/84/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 #83 . Rationale for this change PR #28 added tempDirectory(String) as the only Java surface for DataFusion's RuntimeEnvBuilder disk-manager knobs. Two r...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f
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
releasecfb5f24c6e01d85f70804652a5107e5cac03a161
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/datafusion-java/pull/84/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F84%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%2F84%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/84/files
Reloadhttps://github.com/apache/datafusion-java/pull/84/files
Reloadhttps://github.com/apache/datafusion-java/pull/84/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/disk-manager-builderhttps://github.com/LantaoJin/datafusion-java/tree/feat/disk-manager-builder
Conversation 4 https://github.com/apache/datafusion-java/pull/84
Commits 4 https://github.com/apache/datafusion-java/pull/84/commits
Checks 1 https://github.com/apache/datafusion-java/pull/84/checks
Files changed https://github.com/apache/datafusion-java/pull/84/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/84/files
feat(session): expose disableSpill and maxTempDirectorySize on SessionContextBuilder https://github.com/apache/datafusion-java/pull/84/files#top
Show all changes 4 commits https://github.com/apache/datafusion-java/pull/84/files
348b542 feat(session): expose disableSpill and maxTempDirectorySize on Sessio… LantaoJin May 21, 2026 https://github.com/apache/datafusion-java/pull/84/commits/348b542a7c313a790726e7fc448edadbe55f8a90
99d3792 Merge remote-tracking branch 'upstream/main' into feat/disk-manager-b… LantaoJin May 26, 2026 https://github.com/apache/datafusion-java/pull/84/commits/99d379241b011e6686d40e5dd02a7d654438d3c0
e1a2e9b Merge remote-tracking branch 'upstream/main' into feat/disk-manager-b… LantaoJin May 26, 2026 https://github.com/apache/datafusion-java/pull/84/commits/e1a2e9bec88f923c908265ab2949831369666315
119fea2 docs(session): tighten disableSpill / maxTempDirectorySize Javadoc to… LantaoJin May 26, 2026 https://github.com/apache/datafusion-java/pull/84/commits/119fea2b7f4c38fa10877a3f8f05d0d7928096c0
Clear filters https://github.com/apache/datafusion-java/pull/84/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/84/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/84/files
SessionContextBuilder.java https://github.com/apache/datafusion-java/pull/84/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
SessionContextBuilderTest.java https://github.com/apache/datafusion-java/pull/84/files#diff-50889426329cdb701cb92d08e0f589a10fb873de977e2485adaf522248e961f2
lib.rs https://github.com/apache/datafusion-java/pull/84/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
session_options.proto https://github.com/apache/datafusion-java/pull/84/files#diff-0b48e973a751cd44663289ad7c1db4671e9262f89545cf6d4a518d774c1bd904
core/src/main/java/org/apache/datafusion/SessionContextBuilder.javahttps://github.com/apache/datafusion-java/pull/84/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
View file https://github.com/LantaoJin/datafusion-java/blob/119fea2b7f4c38fa10877a3f8f05d0d7928096c0/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/84/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/84/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
https://github.com/apache/datafusion-java/pull/84/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
https://github.com/apache/datafusion-java/pull/84/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
https://github.com/apache/datafusion-java/pull/84/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
https://github.com/apache/datafusion-java/pull/84/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
https://github.com/apache/datafusion-java/pull/84/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
https://github.com/apache/datafusion-java/pull/84/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
https://github.com/apache/datafusion-java/pull/84/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
https://github.com/apache/datafusion-java/pull/84/files#diff-d94f9dc56a90ad2e3f99a7814d387f3c924307f9632b0ea8fe5f4ac2b08a2532
core/src/test/java/org/apache/datafusion/SessionContextBuilderTest.javahttps://github.com/apache/datafusion-java/pull/84/files#diff-50889426329cdb701cb92d08e0f589a10fb873de977e2485adaf522248e961f2
View file https://github.com/LantaoJin/datafusion-java/blob/119fea2b7f4c38fa10877a3f8f05d0d7928096c0/core/src/test/java/org/apache/datafusion/SessionContextBuilderTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/84/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/84/files#diff-50889426329cdb701cb92d08e0f589a10fb873de977e2485adaf522248e961f2
native/src/lib.rshttps://github.com/apache/datafusion-java/pull/84/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
View file https://github.com/LantaoJin/datafusion-java/blob/119fea2b7f4c38fa10877a3f8f05d0d7928096c0/native/src/lib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/84/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/84/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
https://github.com/apache/datafusion-java/pull/84/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
https://github.com/apache/datafusion-java/pull/84/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
https://github.com/apache/datafusion-java/pull/84/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
proto/session_options.protohttps://github.com/apache/datafusion-java/pull/84/files#diff-0b48e973a751cd44663289ad7c1db4671e9262f89545cf6d4a518d774c1bd904
View file https://github.com/LantaoJin/datafusion-java/blob/119fea2b7f4c38fa10877a3f8f05d0d7928096c0/proto/session_options.proto
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/84/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/84/files#diff-0b48e973a751cd44663289ad7c1db4671e9262f89545cf6d4a518d774c1bd904
https://github.com/apache/datafusion-java/pull/84/files#diff-0b48e973a751cd44663289ad7c1db4671e9262f89545cf6d4a518d774c1bd904
Please reload this pagehttps://github.com/apache/datafusion-java/pull/84/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.