René's URL Explorer Experiment


Title: feat(write): add DataFrame.writeParquet with ParquetWriteOptions by andygrove · Pull Request #27 · apache/datafusion-java · GitHub

Open Graph Title: feat(write): add DataFrame.writeParquet with ParquetWriteOptions by andygrove · Pull Request #27 · apache/datafusion-java

X Title: feat(write): add DataFrame.writeParquet with ParquetWriteOptions by andygrove · Pull Request #27 · apache/datafusion-java

Description: Which issue does this PR close? Closes #. Rationale for this change DataFusion's DataFrame::write_parquet is the natural sink for transformed data, but today the Java bindings have no way to write results back to Parquet — collect() into JVM-side Arrow batches is the only option. This blocks ETL-shaped workloads where read → transform → write needs to stay in native code. What changes are included in this PR? New org.apache.datafusion.ParquetWriteOptions (fluent setters for compression and singleFileOutput), shaped to mirror the existing ParquetReadOptions. DataFrame.writeParquet(String) and DataFrame.writeParquet(String, ParquetWriteOptions) overloads. Both retain the DataFrame (clone on the Rust side), matching the existing count() / show() pattern; the receiver stays usable and must still be closed. One new JNI function Java_org_apache_datafusion_DataFrame_writeParquetWithOptions in native/src/lib.rs. Compression strings (e.g. "zstd(3)", "snappy", "uncompressed") are passed verbatim to DataFusion; invalid values surface as RuntimeException at write time. Deliberately not included this round: An overwriteMode knob / Java InsertOp enum — DataFusion 53.1.0's write_parquet only implements Append (Overwrite and Replace raise "not implemented"). Re-adding the knob once upstream support lands is a non-breaking addition. partition_by, sort_by, row-group / page-size / dictionary / statistics / bloom-filter knobs — out of scope for the first cut. CSV / JSON / Avro write outputs and any shared WriteOptions base. Are these changes tested? Yes. Two test files added: ParquetWriteOptionsTest — pure-Java unit tests for defaults and fluent setter behavior. DataFrameWriteParquetTest — four integration tests guarded by Assumptions.assumeTrue(Files.exists(lineitem)) so they skip cleanly when tpch-data/ is absent: Round-trip row count via the no-options overload (multi-file output). singleFileOutput(true) produces a regular file at the supplied path. compression("zstd(3)") writes and reads back with row count preserved. DataFrame remains usable after writeParquet (pins the retain semantics). make test shows 42 tests, 0 failures. cargo clippy --all-targets --workspace -- -D warnings is clean. Are there any user-facing changes? Yes — adds new public API (DataFrame.writeParquet overloads + ParquetWriteOptions). No removals or breaking changes.

Open Graph Description: Which issue does this PR close? Closes #. Rationale for this change DataFusion's DataFrame::write_parquet is the natural sink for transformed data, but today the Java bindings have no way to ...

X Description: Which issue does this PR close? Closes #. Rationale for this change DataFusion's DataFrame::write_parquet is the natural sink for transformed data, but today the Java bindings have no way...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.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:39044a2c-8de0-d948-6dcf-803f3648f475
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F9E:E08F0:286BB7:38E0C1:6B046A8B
html-safe-nonce7b03e6740bcc3b5d633404f5930d9d5cfe37f9a278f27eec50c3ada1318a0cf3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjlFOkUwOEYwOjI4NkJCNzozOEUwQzE6NkIwNDZBOEIiLCJ2aXNpdG9yX2lkIjoiOTAzODA5NTk3MTM2MzYxMzMyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace55f2bada5fabba0077536233b3a27d3aadfa8a3760da45d4b32bab3220a50f1
hovercard-subject-tagpull_request:3676896747
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/27/files
twitter:imagehttps://avatars.githubusercontent.com/u/934084?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/934084?s=400&v=4
og:image:altWhich issue does this PR close? Closes #. Rationale for this change DataFusion's DataFrame::write_parquet is the natural sink for transformed data, but today the Java bindings have no way to ...
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/27/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F27%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%2F27%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/27/files
Reloadhttps://github.com/apache/datafusion-java/pull/27/files
Reloadhttps://github.com/apache/datafusion-java/pull/27/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
andygrove:feat/write-parquethttps://github.com/andygrove/datafusion-java/tree/feat/write-parquet
Conversation 0 https://github.com/apache/datafusion-java/pull/27
Commits 3 https://github.com/apache/datafusion-java/pull/27/commits
Checks 1 https://github.com/apache/datafusion-java/pull/27/checks
Files changed https://github.com/apache/datafusion-java/pull/27/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/27/files
feat(write): add DataFrame.writeParquet with ParquetWriteOptions https://github.com/apache/datafusion-java/pull/27/files#top
Show all changes 3 commits https://github.com/apache/datafusion-java/pull/27/files
aefdd9f feat(write): add ParquetWriteOptions andygrove May 13, 2026 https://github.com/apache/datafusion-java/pull/27/commits/aefdd9f2f3effc1cc5633958fb52ef677d1262e2
d94d946 feat(write): add DataFrame.writeParquet with native binding andygrove May 13, 2026 https://github.com/apache/datafusion-java/pull/27/commits/d94d94626a92ce64f95cc7e24fda4363ba8d7782
5577bb9 test(write): cover single-file, compression, retain semantics andygrove May 13, 2026 https://github.com/apache/datafusion-java/pull/27/commits/5577bb950611f1dd0a174d94ef9a41a1430e26cd
Clear filters https://github.com/apache/datafusion-java/pull/27/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/27/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/27/files
lib.rs https://github.com/apache/datafusion-java/pull/27/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
DataFrame.java https://github.com/apache/datafusion-java/pull/27/files#diff-c00652b91d74b1a25919d498f9d01ab26806820c9dab0549275b6748dc5d2450
ParquetWriteOptions.java https://github.com/apache/datafusion-java/pull/27/files#diff-40dfc8d0785879724cb0b9565c3ff6d1019a7b9655ae0b73d66829867494ee07
DataFrameWriteParquetTest.java https://github.com/apache/datafusion-java/pull/27/files#diff-67b3f937caaa660273eb228e5910b3d3f9ca490d16e992738114058e3b42aa4a
ParquetWriteOptionsTest.java https://github.com/apache/datafusion-java/pull/27/files#diff-95ac660d1c09b87d27461e63da4c8c52e99683895e9b7653431e466e9a4206e6
native/src/lib.rshttps://github.com/apache/datafusion-java/pull/27/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
View file https://github.com/andygrove/datafusion-java/blob/5577bb950611f1dd0a174d94ef9a41a1430e26cd/native/src/lib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/27/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/27/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
https://github.com/apache/datafusion-java/pull/27/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
https://github.com/apache/datafusion-java/pull/27/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
https://github.com/apache/datafusion-java/pull/27/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
src/main/java/org/apache/datafusion/DataFrame.javahttps://github.com/apache/datafusion-java/pull/27/files#diff-c00652b91d74b1a25919d498f9d01ab26806820c9dab0549275b6748dc5d2450
View file https://github.com/andygrove/datafusion-java/blob/5577bb950611f1dd0a174d94ef9a41a1430e26cd/src/main/java/org/apache/datafusion/DataFrame.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/27/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/27/files#diff-c00652b91d74b1a25919d498f9d01ab26806820c9dab0549275b6748dc5d2450
https://github.com/apache/datafusion-java/pull/27/files#diff-c00652b91d74b1a25919d498f9d01ab26806820c9dab0549275b6748dc5d2450
src/main/java/org/apache/datafusion/ParquetWriteOptions.javahttps://github.com/apache/datafusion-java/pull/27/files#diff-40dfc8d0785879724cb0b9565c3ff6d1019a7b9655ae0b73d66829867494ee07
View file https://github.com/andygrove/datafusion-java/blob/5577bb950611f1dd0a174d94ef9a41a1430e26cd/src/main/java/org/apache/datafusion/ParquetWriteOptions.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/27/{{ revealButtonHref }}
src/test/java/org/apache/datafusion/DataFrameWriteParquetTest.javahttps://github.com/apache/datafusion-java/pull/27/files#diff-67b3f937caaa660273eb228e5910b3d3f9ca490d16e992738114058e3b42aa4a
View file https://github.com/andygrove/datafusion-java/blob/5577bb950611f1dd0a174d94ef9a41a1430e26cd/src/test/java/org/apache/datafusion/DataFrameWriteParquetTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/27/{{ revealButtonHref }}
src/test/java/org/apache/datafusion/ParquetWriteOptionsTest.javahttps://github.com/apache/datafusion-java/pull/27/files#diff-95ac660d1c09b87d27461e63da4c8c52e99683895e9b7653431e466e9a4206e6
View file https://github.com/andygrove/datafusion-java/blob/5577bb950611f1dd0a174d94ef9a41a1430e26cd/src/test/java/org/apache/datafusion/ParquetWriteOptionsTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/27/{{ revealButtonHref }}
Please reload this pagehttps://github.com/apache/datafusion-java/pull/27/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.