René's URL Explorer Experiment


Title: feat(avro): expose Avro reader via registerAvro and readAvro by LantaoJin · Pull Request #60 · apache/datafusion-java · GitHub

Open Graph Title: feat(avro): expose Avro reader via registerAvro and readAvro by LantaoJin · Pull Request #60 · apache/datafusion-java

X Title: feat(avro): expose Avro reader via registerAvro and readAvro by LantaoJin · Pull Request #60 · apache/datafusion-java

Description: Which issue does this PR close? Closes #36 . Rationale for this change DataFusion 53.1 supports Avro via SessionContext::read_avro / register_avro. The Java binding for Avro is still missing. I measured release builds before and after on the same machine: libdatafusion_jni.so grew from 146,983,936 bytes to 151,566,800 bytes, +4.4 MiB unstripped. Modest given that Avro is comparable in scope to the parquet/csv readers that are already on by default. Always-on means Java callers can rely on Avro being present without juggling Cargo features through the Maven build. What changes are included in this PR? proto/avro_read_options.proto -- new AvroReadOptionsProto message. AvroReadOptions Java builder with fileExtension(String) and schema(Schema) setters. native/src/avro.rs JNI module. native/build.rs, native/src/lib.rs: register the new proto and the new module. pom.xml + core/pom.xml: add org.apache.avro:avro (1.12.0) in test scope Are these changes tested? Yes -- 9 new tests across AvroReadOptionsTest and SessionContextAvroTest. Are there any user-facing changes? Yes -- purely additive. New public API: org.apache.datafusion.AvroReadOptions SessionContext.registerAvro(String, String) SessionContext.registerAvro(String, String, AvroReadOptions) SessionContext.readAvro(String) → DataFrame SessionContext.readAvro(String, AvroReadOptions) → DataFrame The new org.apache.datafusion.protobuf.AvroReadOptionsProto generated class is also exposed via the protobuf-Java output, consistent with how CsvReadOptionsProto, ArrowReadOptionsProto, etc. are exposed. No API removals, no deprecations, no behavior change for existing callers. The native binary grows ~4.4 MiB unstripped to enable Avro's datasource crate (see Rationale).

Open Graph Description: Which issue does this PR close? Closes #36 . Rationale for this change DataFusion 53.1 supports Avro via SessionContext::read_avro / register_avro. The Java binding for Avro is still missing. I m...

X Description: Which issue does this PR close? Closes #36 . Rationale for this change DataFusion 53.1 supports Avro via SessionContext::read_avro / register_avro. The Java binding for Avro is still missing. I m...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.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:5e24025c-ce66-b43b-e6ad-788a02a57288
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8BB2:228EA3:28C69B:3A095F:6B046A58
html-safe-nonce1b4c1067900ec55920c8d1ca114dc2c6e2d2dcad65f644b962557d8560658a6b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkIyOjIyOEVBMzoyOEM2OUI6M0EwOTVGOjZCMDQ2QTU4IiwidmlzaXRvcl9pZCI6IjE4NjI5Nzc3ODc2Nzg0NTIzMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb7eedcc77710c201bbf1208348a6cab02b11a800bd2f81e853e384cdf127fdf1
hovercard-subject-tagpull_request:3700826621
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/60/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 #36 . Rationale for this change DataFusion 53.1 supports Avro via SessionContext::read_avro / register_avro. The Java binding for Avro is still missing. I m...
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/60/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F60%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%2F60%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/60/files
Reloadhttps://github.com/apache/datafusion-java/pull/60/files
Reloadhttps://github.com/apache/datafusion-java/pull/60/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/avro-sourcehttps://github.com/LantaoJin/datafusion-java/tree/feat/avro-source
Conversation 1 https://github.com/apache/datafusion-java/pull/60
Commits 1 https://github.com/apache/datafusion-java/pull/60/commits
Checks 1 https://github.com/apache/datafusion-java/pull/60/checks
Files changed https://github.com/apache/datafusion-java/pull/60/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/60/files
feat(avro): expose Avro reader via registerAvro and readAvro https://github.com/apache/datafusion-java/pull/60/files#top
Show all changes 1 commit https://github.com/apache/datafusion-java/pull/60/files
14983db feat(avro): expose Avro reader via registerAvro and readAvro LantaoJin May 18, 2026 https://github.com/apache/datafusion-java/pull/60/commits/14983dba40d00a8ac475e25a9056edc6dc2b6dd1
Clear filters https://github.com/apache/datafusion-java/pull/60/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/60/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/60/files
pom.xml https://github.com/apache/datafusion-java/pull/60/files#diff-8d04401f1cc51365fe3e32f019cd720135ba920a1a7da7f19e9c9208478701fc
AvroReadOptions.java https://github.com/apache/datafusion-java/pull/60/files#diff-0e194236b663002b86292c8495277ebcb65c0363093249ffb0f421315a091ce1
SessionContext.java https://github.com/apache/datafusion-java/pull/60/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
AvroReadOptionsTest.java https://github.com/apache/datafusion-java/pull/60/files#diff-aeae8c5fb9eb87e2ccee4d151fd7cdb852423f3aba305e8d7c48c4383730a43b
SessionContextAvroTest.java https://github.com/apache/datafusion-java/pull/60/files#diff-20fb75b1cbb64002534c48e00958f4733c049f101b54fb3bd9b9677050ffe980
Cargo.lock https://github.com/apache/datafusion-java/pull/60/files#diff-078f375cfc74d2a2bae74160d7469389a54227046a6daec4edb0481597ec2aa8
Cargo.toml https://github.com/apache/datafusion-java/pull/60/files#diff-a1571d177cbc44d96f49c8f29b6340febcee141a0e26833931bcd78c5441fb55
build.rs https://github.com/apache/datafusion-java/pull/60/files#diff-358ae2245aa2cd99768b0c568a07648d4c26c8cdd84b15cd6f0af2680ec85240
avro.rs https://github.com/apache/datafusion-java/pull/60/files#diff-223c76949b2413ac757f106c5c89409ee965159cad3d3f84301df688a43525ac
lib.rs https://github.com/apache/datafusion-java/pull/60/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
pom.xml https://github.com/apache/datafusion-java/pull/60/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8
avro_read_options.proto https://github.com/apache/datafusion-java/pull/60/files#diff-25c079fe850e9c998c60cbfe2be8f40bffb641eb58a6f53b81b8aaec2217236d
core/pom.xmlhttps://github.com/apache/datafusion-java/pull/60/files#diff-8d04401f1cc51365fe3e32f019cd720135ba920a1a7da7f19e9c9208478701fc
View file https://github.com/LantaoJin/datafusion-java/blob/14983dba40d00a8ac475e25a9056edc6dc2b6dd1/core/pom.xml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/60/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/60/files#diff-8d04401f1cc51365fe3e32f019cd720135ba920a1a7da7f19e9c9208478701fc
https://github.com/apache/datafusion-java/pull/60/files#diff-8d04401f1cc51365fe3e32f019cd720135ba920a1a7da7f19e9c9208478701fc
core/src/main/java/org/apache/datafusion/AvroReadOptions.javahttps://github.com/apache/datafusion-java/pull/60/files#diff-0e194236b663002b86292c8495277ebcb65c0363093249ffb0f421315a091ce1
View file https://github.com/LantaoJin/datafusion-java/blob/14983dba40d00a8ac475e25a9056edc6dc2b6dd1/core/src/main/java/org/apache/datafusion/AvroReadOptions.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/60/{{ revealButtonHref }}
core/src/main/java/org/apache/datafusion/SessionContext.javahttps://github.com/apache/datafusion-java/pull/60/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
View file https://github.com/LantaoJin/datafusion-java/blob/14983dba40d00a8ac475e25a9056edc6dc2b6dd1/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/60/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/60/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
https://github.com/apache/datafusion-java/pull/60/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
https://github.com/apache/datafusion-java/pull/60/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
https://github.com/apache/datafusion-java/pull/60/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
core/src/test/java/org/apache/datafusion/AvroReadOptionsTest.javahttps://github.com/apache/datafusion-java/pull/60/files#diff-aeae8c5fb9eb87e2ccee4d151fd7cdb852423f3aba305e8d7c48c4383730a43b
View file https://github.com/LantaoJin/datafusion-java/blob/14983dba40d00a8ac475e25a9056edc6dc2b6dd1/core/src/test/java/org/apache/datafusion/AvroReadOptionsTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/60/{{ revealButtonHref }}
Please reload this pagehttps://github.com/apache/datafusion-java/pull/60/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/60/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.