René's URL Explorer Experiment


Title: feat(dataframe): add join, joinOn, and JoinType by LantaoJin · Pull Request #72 · apache/datafusion-java · GitHub

Open Graph Title: feat(dataframe): add join, joinOn, and JoinType by LantaoJin · Pull Request #72 · apache/datafusion-java

X Title: feat(dataframe): add join, joinOn, and JoinType by LantaoJin · Pull Request #72 · apache/datafusion-java

Description: Which issue does this PR close? Closes #44 . Rationale for this change Joins are the largest missing piece of the DataFrame API today; without them, Java callers cannot programmatically express even simple star-join queries that DataFusion's Rust API has supported for years. What changes are included in this PR? This PR ships Phase 1 : column-name join plus joinOn with String-form predicates. By committing to SQL-string predicates here, it also closes the Phase-2 design question. A typed Expr builder is deliberately deferred. New public Java enum org.apache.datafusion.JoinType mirroring upstream's 10-variant enum (INNER, LEFT, RIGHT, FULL, LEFT_SEMI, RIGHT_SEMI, LEFT_ANTI, RIGHT_ANTI, LEFT_MARK, RIGHT_MARK). Crosses JNI as a byte code, mirroring the existing Volatility precedent for UDFs. Three new methods on DataFrame: DataFrame.join(right, type, leftCols, rightCols) — equi-join on named columns, no residual filter. DataFrame.join(right, type, leftCols, rightCols, filter) — equi-join with a residual SQL filter parsed against the combined schema of left + right. DataFrame.joinOn(right, type, predicates...) — arbitrary join predicates, each parsed as a SQL expression against the combined schema. Predicates may be qualified with the relation alias when ambiguous (e.g. "l.id = r.id", "left.x < right.y"). All three are non-consuming on the Java side: both left (the receiver) and right remain usable and must still be closed independently. Upstream's Rust join / join_on consume both, but the JNI layer clones the underlying Arc-backed DataFrame like every other transformation method (select / filter / withColumn / unnestColumns). This matches the established Java-side convention and supports the natural star-join pattern where the same fact table is joined to multiple dimensions: DataFrame fact = ctx.sql(...); DataFrame d1 = fact.join(dimA, INNER, fact_keys, dimA_keys); DataFrame d2 = fact.join(dimB, INNER, fact_keys, dimB_keys); // fact still usable Out of scope (for follow-ups): Typed Expr builder (Phase 2 option 2). Andy's issue explicitly cautions against the maintenance burden. The String-form predicate channel covers everything DataFusion's parser supports. Cross-join, natural-join. Not in #44; separate issues. Predicate validation pre-flight on the Java side. DataFusion's parser is the source of truth and surfaces errors the same way filter(String) already does. Are these changes tested? Yes, 18 new tests in core/src/test/java/org/apache/datafusion/DataFrameJoinTest.java Are there any user-facing changes? Yes, purely additive. New public API: org.apache.datafusion.JoinType (enum) DataFrame.join(DataFrame, JoinType, String[], String[]) DataFrame.join(DataFrame, JoinType, String[], String[], String) DataFrame.joinOn(DataFrame, JoinType, String...) No API removals, no deprecations, no behavior change for existing callers. The native binary is unchanged in size (no new Cargo features or dependencies).

Open Graph Description: Which issue does this PR close? Closes #44 . Rationale for this change Joins are the largest missing piece of the DataFrame API today; without them, Java callers cannot programmatically express e...

X Description: Which issue does this PR close? Closes #44 . Rationale for this change Joins are the largest missing piece of the DataFrame API today; without them, Java callers cannot programmatically express e...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.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:cd4a3500-d244-0443-7267-6037f2ef8f8a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F42:99B56:290B05:39F3B7:6B046A43
html-safe-nonce888a652bdfae97d7dc8d56df42ef1be7b3ee05c845292bc0d8a6e3b0416090d1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjQyOjk5QjU2OjI5MEIwNTozOUYzQjc6NkIwNDZBNDMiLCJ2aXNpdG9yX2lkIjoiMTQ3NDAwMzA4MjM3ODc2NjkxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac077edfa61d9ba11d94022e0b753e6ab2deb534e1e8b2dc935431d0aec088766a
hovercard-subject-tagpull_request:3715345383
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/72/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 #44 . Rationale for this change Joins are the largest missing piece of the DataFrame API today; without them, Java callers cannot programmatically express e...
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/72/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F72%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%2F72%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/72/files
Reloadhttps://github.com/apache/datafusion-java/pull/72/files
Reloadhttps://github.com/apache/datafusion-java/pull/72/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/dataframe-joinhttps://github.com/LantaoJin/datafusion-java/tree/feat/dataframe-join
Conversation 1 https://github.com/apache/datafusion-java/pull/72
Commits 2 https://github.com/apache/datafusion-java/pull/72/commits
Checks 1 https://github.com/apache/datafusion-java/pull/72/checks
Files changed https://github.com/apache/datafusion-java/pull/72/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/72/files
feat(dataframe): add join, joinOn, and JoinType https://github.com/apache/datafusion-java/pull/72/files#top
Show all changes 2 commits https://github.com/apache/datafusion-java/pull/72/files
9067b52 feat(dataframe): add join, joinOn, and JoinType LantaoJin May 20, 2026 https://github.com/apache/datafusion-java/pull/72/commits/9067b521aa6f113c99528942deb23b92c4a8e5f8
2de8dbb Merge branch 'main' into feat/dataframe-join LantaoJin May 21, 2026 https://github.com/apache/datafusion-java/pull/72/commits/2de8dbbd3f85015d16eb027c2aa3b59d22b98fd6
Clear filters https://github.com/apache/datafusion-java/pull/72/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/72/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/72/files
DataFrame.java https://github.com/apache/datafusion-java/pull/72/files#diff-a044f0300400b70bd8ec9c4e4a27c17b89674595e0ae3f5a6ebf88e393ba479b
JoinType.java https://github.com/apache/datafusion-java/pull/72/files#diff-ee384d590618a93741eea3d0bd358f9a6c3cb21fbcef5580f4b2d8db79bc5026
DataFrameJoinTest.java https://github.com/apache/datafusion-java/pull/72/files#diff-4571652f1e83d8e13edb923bd531aa0849b050ecfbc930d58314512ad80a8260
lib.rs https://github.com/apache/datafusion-java/pull/72/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e
core/src/main/java/org/apache/datafusion/DataFrame.javahttps://github.com/apache/datafusion-java/pull/72/files#diff-a044f0300400b70bd8ec9c4e4a27c17b89674595e0ae3f5a6ebf88e393ba479b
View file https://github.com/LantaoJin/datafusion-java/blob/2de8dbbd3f85015d16eb027c2aa3b59d22b98fd6/core/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/72/{{ revealButtonHref }}
https://github.com/apache/datafusion-java/pull/72/files#diff-a044f0300400b70bd8ec9c4e4a27c17b89674595e0ae3f5a6ebf88e393ba479b
https://github.com/apache/datafusion-java/pull/72/files#diff-a044f0300400b70bd8ec9c4e4a27c17b89674595e0ae3f5a6ebf88e393ba479b
https://github.com/apache/datafusion-java/pull/72/files#diff-a044f0300400b70bd8ec9c4e4a27c17b89674595e0ae3f5a6ebf88e393ba479b
https://github.com/apache/datafusion-java/pull/72/files#diff-a044f0300400b70bd8ec9c4e4a27c17b89674595e0ae3f5a6ebf88e393ba479b
core/src/main/java/org/apache/datafusion/JoinType.javahttps://github.com/apache/datafusion-java/pull/72/files#diff-ee384d590618a93741eea3d0bd358f9a6c3cb21fbcef5580f4b2d8db79bc5026
View file https://github.com/LantaoJin/datafusion-java/blob/2de8dbbd3f85015d16eb027c2aa3b59d22b98fd6/core/src/main/java/org/apache/datafusion/JoinType.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/72/{{ revealButtonHref }}
Please reload this pagehttps://github.com/apache/datafusion-java/pull/72/files
Please reload this pagehttps://github.com/apache/datafusion-java/pull/72/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.