René's URL Explorer Experiment


Title: feat(csv): expose CsvReadOptions via registerCsv and readCsv by LantaoJin · Pull Request #21 · apache/datafusion-java · GitHub

Open Graph Title: feat(csv): expose CsvReadOptions via registerCsv and readCsv by LantaoJin · Pull Request #21 · apache/datafusion-java

X Title: feat(csv): expose CsvReadOptions via registerCsv and readCsv by LantaoJin · Pull Request #21 · apache/datafusion-java

Description: Which issue does this PR close? Closes #22 Summary Mirror the parquet pattern (#18, #19): add CsvReadOptions builder, four SessionContext methods (registerCsv x2, readCsv x2), and JNI plumbing in native/src/csv.rs. Builder exposes the subset of DataFusion's Rust CsvReadOptions that has a parquet analog already on the Java side -- header, delimiter, quote, escape, terminator, comment, newlinesInValues, schemaInferMaxRecords, fileExtension, fileCompressionType, and explicit Arrow schema. Tests cover: option-builder fluent API, header-inferred schema with SQL round-trip, explicit-schema header-less file with custom delimiter, and a custom file extension with a tab delimiter. table_partition_cols, file_sort_order, null_regex and truncated_rows are intentionally deferred -- they have no parquet-side counterpart yet on the Java side. Changes Add CsvReadOptions builder mirroring the subset of Rust datafusion::prelude::CsvReadOptions that has a Parquet analog already exposed in this repo: header, delimiter, quote, escape, terminator, comment, newlinesInValues, schemaInferMaxRecords, fileExtension, fileCompressionType, and explicit Arrow schema. Add SessionContext.registerCsv(...) / readCsv(...) overloads, matching the shape of registerParquet / readParquet. Wire native methods through native/src/lib.rs, sharing the schema-IPC-serialization helper already used by the Parquet path. tablePartitionCols, fileSortOrder, nullRegex, and truncatedRows are intentionally deferred to a follow-up; they have no Parquet-side counterpart yet on the Java side and were called out in the issue as out-of-scope. Test plan ./mvnw test — new CsvReadOptionsTest (option-builder) passes. ./mvnw test — new SessionContextCsvTest passes: registerCsv + SQL round-trip on an inferred-schema file readCsv with explicit Arrow schema and hasHeader(false) make test — full native + JVM build is green. cargo fmt and cargo clippy --all-targets -- -D warnings clean under native/. ./mvnw spotless:apply clean.

Open Graph Description: Which issue does this PR close? Closes #22 Summary Mirror the parquet pattern (#18, #19): add CsvReadOptions builder, four SessionContext methods (registerCsv x2, readCsv x2), and JNI plumbing in...

X Description: Which issue does this PR close? Closes #22 Summary Mirror the parquet pattern (#18, #19): add CsvReadOptions builder, four SessionContext methods (registerCsv x2, readCsv x2), and JNI plumbing in...

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

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:3cf413d8-d544-bac7-d404-c0461b8f4ab0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9ECC:367411:2E61FA:3FE3DB:6B046AA6
html-safe-noncec29c2259df3cad162f7036ed328a67b2e1afa1f77a3975276f4b90d56f7667ec
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUNDOjM2NzQxMToyRTYxRkE6M0ZFM0RCOjZCMDQ2QUE2IiwidmlzaXRvcl9pZCI6Ijc2ODM1NTU0OTkxNTMwNTg0NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd0deb60bb0d6e11d18fc5f2da089b6d095ceecfff0bdaea0aa1b2c9d1a829dc3
hovercard-subject-tagpull_request:3675112362
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/21/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 #22 Summary Mirror the parquet pattern (#18, #19): add CsvReadOptions builder, four SessionContext methods (registerCsv x2, readCsv x2), and JNI plumbing in...
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/21/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F21%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%2F21%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/21/files
Reloadhttps://github.com/apache/datafusion-java/pull/21/files
Reloadhttps://github.com/apache/datafusion-java/pull/21/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/csv-sourcehttps://github.com/LantaoJin/datafusion-java/tree/feat/csv-source
Conversation 2 https://github.com/apache/datafusion-java/pull/21
Commits 1 https://github.com/apache/datafusion-java/pull/21/commits
Checks 1 https://github.com/apache/datafusion-java/pull/21/checks
Files changed https://github.com/apache/datafusion-java/pull/21/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/21/files
feat(csv): expose CsvReadOptions via registerCsv and readCsv https://github.com/apache/datafusion-java/pull/21/files#top
Show all changes 1 commit https://github.com/apache/datafusion-java/pull/21/files
6edb29f feat(csv): expose CsvReadOptions via registerCsv and readCsv LantaoJin May 13, 2026 https://github.com/apache/datafusion-java/pull/21/commits/6edb29f561a393f8b8f433213c773a880cf58356
Clear filters https://github.com/apache/datafusion-java/pull/21/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/21/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/21/files
README.md https://github.com/apache/datafusion-java/pull/21/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
csv.rs https://github.com/apache/datafusion-java/pull/21/files#diff-3f93ec0d7a9d1312c4c66352cd078bf109654268074a062bde373a26db3fcbd3
lib.rs https://github.com/apache/datafusion-java/pull/21/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
CsvReadOptions.java https://github.com/apache/datafusion-java/pull/21/files#diff-5662f9e9009bcbc19c221f73d5e97f9b899543c8e6433b3ee4437764261c1384
SessionContext.java https://github.com/apache/datafusion-java/pull/21/files#diff-97cb6bdf00492346e379b9db2a61edc3c8cdd03f802761c989617a63cd2cf986
CsvReadOptionsTest.java https://github.com/apache/datafusion-java/pull/21/files#diff-7110667e89a1e58ef2cc015ebd84dc08bddfd1b24e39b9cf4deb9ec23d0399dc
SessionContextCsvTest.java https://github.com/apache/datafusion-java/pull/21/files#diff-2404c2aac2756d8a189c5e1b73ef650368c0cd5065a351dd11ed81f25dc96f38
README.mdhttps://github.com/apache/datafusion-java/pull/21/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/LantaoJin/datafusion-java/blob/6edb29f561a393f8b8f433213c773a880cf58356/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/21/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/21/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/apache/datafusion-java/pull/21/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
native/src/csv.rshttps://github.com/apache/datafusion-java/pull/21/files#diff-3f93ec0d7a9d1312c4c66352cd078bf109654268074a062bde373a26db3fcbd3
View file https://github.com/LantaoJin/datafusion-java/blob/6edb29f561a393f8b8f433213c773a880cf58356/native/src/csv.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/21/{{ revealButtonHref }}
native/src/lib.rshttps://github.com/apache/datafusion-java/pull/21/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
View file https://github.com/LantaoJin/datafusion-java/blob/6edb29f561a393f8b8f433213c773a880cf58356/native/src/lib.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/21/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/21/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
https://github.com/apache/datafusion-java/pull/21/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
src/main/java/org/apache/datafusion/CsvReadOptions.javahttps://github.com/apache/datafusion-java/pull/21/files#diff-5662f9e9009bcbc19c221f73d5e97f9b899543c8e6433b3ee4437764261c1384
View file https://github.com/LantaoJin/datafusion-java/blob/6edb29f561a393f8b8f433213c773a880cf58356/src/main/java/org/apache/datafusion/CsvReadOptions.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/21/{{ revealButtonHref }}
Please reload this pagehttps://github.com/apache/datafusion-java/pull/21/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/21/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.