René's URL Explorer Experiment


Title: feat(arrow): expose Arrow IPC reader via registerArrow and readArrow by LantaoJin · Pull Request #52 · apache/datafusion-java · GitHub

Open Graph Title: feat(arrow): expose Arrow IPC reader via registerArrow and readArrow by LantaoJin · Pull Request #52 · apache/datafusion-java

X Title: feat(arrow): expose Arrow IPC reader via registerArrow and readArrow by LantaoJin · Pull Request #52 · apache/datafusion-java

Description: Which issue does this PR close? Closes #37. Rationale for this change DataFusion 53.x supports Arrow IPC files via SessionContext::register_arrow / read_arrow, but the Java bindings only expose Parquet, CSV, and (in #47) NDJSON. Since JVM results already come back as Arrow batches via the C Data Interface, an Arrow IPC reader on the Java side closes the natural round-trip: Java callers can write Arrow IPC to disk with arrow-vector's ArrowFileWriter, then read it back through DataFusion without going through Parquet or any other intermediate format. Today they have to fall back to CREATE EXTERNAL TABLE … STORED AS ARROW via SQL, which works but bypasses the typed builder pattern. This PR is the Java surface for the existing upstream functionality. Issue #37 tracks it; the implementation follows the same proto-over-JNI pattern as #47 (NDJSON), #29 (the CSV/Parquet refactor), and the merged CSV/Parquet readers. What changes are included in this PR? proto/arrow_read_options.proto — new ArrowReadOptionsProto message. Single field: file_extension (default .arrow). Explicit Arrow schema rides on the existing IPC byte channel through the JNI layer, mirroring the parquet/csv/json paths, and is therefore not encoded in this message. No FileCompressionType field — Arrow IPC files carry body compression (LZ4_FRAME / ZSTD per-buffer) inside the file format itself. ArrowReadOptions Java builder with fileExtension(String) and schema(Schema) setters. SessionContext.registerArrow(name, path[, options]) and readArrow(path[, options]) overloads, structurally identical to the parquet/csv/json entry points. native/src/arrow.rs — JNI module that decodes ArrowReadOptionsProto, constructs the upstream ArrowReadOptions, and forwards to register_arrow / read_arrow. Imports ArrowReadOptions from datafusion::execution::options rather than prelude (it's not re-exported there, same situation as JsonReadOptions). Out of scope (for follow-ups): tablePartitionCols: neither parquet, csv, nor ndjson exposes Hive-style partitioning on the Java side yet. Adding it for Arrow only would diverge. Are these changes tested? Yes, 9 new tests across ArrowReadOptionsTest and SessionContextArrowTest. Are there any user-facing changes? Yes, purely additive. New public API: org.apache.datafusion.ArrowReadOptions SessionContext.registerArrow(String, String) SessionContext.registerArrow(String, String, ArrowReadOptions) SessionContext.readArrow(String) → DataFrame SessionContext.readArrow(String, ArrowReadOptions) → DataFrame The new org.apache.datafusion.protobuf.ArrowReadOptionsProto generated class is also exposed via the protobuf-Java output, consistent with how CsvReadOptionsProto, NdJsonReadOptionsProto, and ParquetReadOptionsProto are exposed. No API removals, no deprecations, no behavior change for existing callers.

Open Graph Description: Which issue does this PR close? Closes #37. Rationale for this change DataFusion 53.x supports Arrow IPC files via SessionContext::register_arrow / read_arrow, but the Java bindings only expose P...

X Description: Which issue does this PR close? Closes #37. Rationale for this change DataFusion 53.x supports Arrow IPC files via SessionContext::register_arrow / read_arrow, but the Java bindings only expose P...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.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:1b29864c-3678-133e-8380-4fae426b8139
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDB9A:BE8D0:29BCE6:3AC71E:6B046A4A
html-safe-nonce42844fbf377a80980a21a62b9f5afeb751944ebccaa3c772c2f194e812873db5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjlBOkJFOEQwOjI5QkNFNjozQUM3MUU6NkIwNDZBNEEiLCJ2aXNpdG9yX2lkIjoiNDE4NzA1MTAwNDYyMzM1MDM0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb0a1ad76bfb3af1ceffce33fbc91d113a7e3c738ea9f2e46ec3772d7848f92bf
hovercard-subject-tagpull_request:3687249080
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/52/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 #37. Rationale for this change DataFusion 53.x supports Arrow IPC files via SessionContext::register_arrow / read_arrow, but the Java bindings only expose 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/52/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F52%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%2F52%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/52/files
Reloadhttps://github.com/apache/datafusion-java/pull/52/files
Reloadhttps://github.com/apache/datafusion-java/pull/52/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/arrow-sourcehttps://github.com/LantaoJin/datafusion-java/tree/feat/arrow-source
Conversation 1 https://github.com/apache/datafusion-java/pull/52
Commits 2 https://github.com/apache/datafusion-java/pull/52/commits
Checks 1 https://github.com/apache/datafusion-java/pull/52/checks
Files changed https://github.com/apache/datafusion-java/pull/52/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/52/files
feat(arrow): expose Arrow IPC reader via registerArrow and readArrow https://github.com/apache/datafusion-java/pull/52/files#top
Show all changes 2 commits https://github.com/apache/datafusion-java/pull/52/files
0a13ed5 feat(arrow): expose Arrow IPC reader via registerArrow and readArrow LantaoJin May 15, 2026 https://github.com/apache/datafusion-java/pull/52/commits/0a13ed5fd76019b25d8c9b914bfa6a05386d98b0
9e3f66c Merge remote-tracking branch 'upstream/main' into feat/arrow-source LantaoJin May 18, 2026 https://github.com/apache/datafusion-java/pull/52/commits/9e3f66ce0832a47cdd7de08c16a537602420f7f2
Clear filters https://github.com/apache/datafusion-java/pull/52/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/52/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/52/files
ArrowReadOptions.java https://github.com/apache/datafusion-java/pull/52/files#diff-df13e7b0ea80f8483e90d62961b61e3039791385cd61f234b144af4b69193097
SessionContext.java https://github.com/apache/datafusion-java/pull/52/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
ArrowReadOptionsTest.java https://github.com/apache/datafusion-java/pull/52/files#diff-16f759cbbedff3142872ab3fe51d91f944d50b148e438ada6700f2dcd54abedb
SessionContextArrowTest.java https://github.com/apache/datafusion-java/pull/52/files#diff-5e2524b6b6baa51849c1862c902083d01cd40dd13778e510a484fe0cfb8975ad
build.rs https://github.com/apache/datafusion-java/pull/52/files#diff-358ae2245aa2cd99768b0c568a07648d4c26c8cdd84b15cd6f0af2680ec85240
arrow.rs https://github.com/apache/datafusion-java/pull/52/files#diff-d6de445c7d49415e73ca9fee45165f79a9ded1dd0d70bbf602ba82b88f3854d2
lib.rs https://github.com/apache/datafusion-java/pull/52/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
arrow_read_options.proto https://github.com/apache/datafusion-java/pull/52/files#diff-c14172080fe564c7ad6cc447b8796cee5eceb0c8667c4c6c1de8ab1e4abc16c4
core/src/main/java/org/apache/datafusion/ArrowReadOptions.javahttps://github.com/apache/datafusion-java/pull/52/files#diff-df13e7b0ea80f8483e90d62961b61e3039791385cd61f234b144af4b69193097
View file https://github.com/LantaoJin/datafusion-java/blob/9e3f66ce0832a47cdd7de08c16a537602420f7f2/core/src/main/java/org/apache/datafusion/ArrowReadOptions.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/52/{{ revealButtonHref }}
core/src/main/java/org/apache/datafusion/SessionContext.javahttps://github.com/apache/datafusion-java/pull/52/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
View file https://github.com/LantaoJin/datafusion-java/blob/9e3f66ce0832a47cdd7de08c16a537602420f7f2/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/52/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/52/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
https://github.com/apache/datafusion-java/pull/52/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
https://github.com/apache/datafusion-java/pull/52/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
https://github.com/apache/datafusion-java/pull/52/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
core/src/test/java/org/apache/datafusion/ArrowReadOptionsTest.javahttps://github.com/apache/datafusion-java/pull/52/files#diff-16f759cbbedff3142872ab3fe51d91f944d50b148e438ada6700f2dcd54abedb
View file https://github.com/LantaoJin/datafusion-java/blob/9e3f66ce0832a47cdd7de08c16a537602420f7f2/core/src/test/java/org/apache/datafusion/ArrowReadOptionsTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/52/{{ revealButtonHref }}
core/src/test/java/org/apache/datafusion/SessionContextArrowTest.javahttps://github.com/apache/datafusion-java/pull/52/files#diff-5e2524b6b6baa51849c1862c902083d01cd40dd13778e510a484fe0cfb8975ad
View file https://github.com/LantaoJin/datafusion-java/blob/9e3f66ce0832a47cdd7de08c16a537602420f7f2/core/src/test/java/org/apache/datafusion/SessionContextArrowTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/52/{{ revealButtonHref }}
Please reload this pagehttps://github.com/apache/datafusion-java/pull/52/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/52/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.