| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:93269fa4-a78d-6c4c-64ff-c1c18c71aaf7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B954:3C4279:24EAC1:347839:6B046A40 |
| html-safe-nonce | 25165ca1b268ceb49f7c18326fd31e843201407763ae0ce57c7af5efeb740cfa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTU0OjNDNDI3OToyNEVBQzE6MzQ3ODM5OjZCMDQ2QTQwIiwidmlzaXRvcl9pZCI6IjI1ODc4NjgwNzg1NDExMzg0OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 42256cd3aeb1b7b2d0b425a13914880b373d27baa559cf9b631999d1ce173e5f |
| hovercard-subject-tag | pull_request:3679848072 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/apache/datafusion-java/pull/46/files |
| twitter:image | https://avatars.githubusercontent.com/u/934084?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/934084?s=400&v=4 |
| og:image:alt | Which issue does this PR close?
N/A
Rationale for this change
Add support for implement scalar UDFs in Java.
What changes are included in this PR?
Public Java API
ScalarUdf @FunctionalInterface wi... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/apache/datafusion-java git https://github.com/apache/datafusion-java.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 1237105117 |
| octolytics-dimension-repository_nwo | apache/datafusion-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1237105117 |
| octolytics-dimension-repository_network_root_nwo | apache/datafusion-java |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/apache/datafusion-java/pull/46/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F46%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F46%2Ffiles |
| Sign up | https://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 |
| Reload | https://github.com/apache/datafusion-java/pull/46/files |
| Reload | https://github.com/apache/datafusion-java/pull/46/files |
| Reload | https://github.com/apache/datafusion-java/pull/46/files |
| apache | https://github.com/apache |
| datafusion-java | https://github.com/apache/datafusion-java |
| Code | https://github.com/apache/datafusion-java |
| Issues10 (10) | https://github.com/apache/datafusion-java/issues |
| Pull requests10 (10) | https://github.com/apache/datafusion-java/pulls |
| Discussions | https://github.com/apache/datafusion-java/discussions |
| Actions | https://github.com/apache/datafusion-java/actions |
| Security and quality | https://github.com/apache/datafusion-java/security |
| Insights | https://github.com/apache/datafusion-java/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fapache%2Fdatafusion-java%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fapache%2Fdatafusion-java%2Fissues%2Fnew%2Fchoose |
| andygrove | https://github.com/andygrove |
| apache:main | https://github.com/apache/datafusion-java/tree/main |
| andygrove:feat/scalar-udf | https://github.com/andygrove/datafusion-java/tree/feat/scalar-udf |
|
Conversation
9
| https://github.com/apache/datafusion-java/pull/46 |
|
Commits
14
| https://github.com/apache/datafusion-java/pull/46/commits |
|
Checks
2
| https://github.com/apache/datafusion-java/pull/46/checks |
|
Files changed
| https://github.com/apache/datafusion-java/pull/46/files |
| Please reload this page | https://github.com/apache/datafusion-java/pull/46/files |
|
feat: add Java scalar UDF support
| https://github.com/apache/datafusion-java/pull/46/files#top |
|
Show all changes
14 commits
| https://github.com/apache/datafusion-java/pull/46/files |
|
7517f86
feat(native): cache JavaVM in OnceLock via JNI_OnLoad
andygrove May 13, 2026
| https://github.com/apache/datafusion-java/pull/46/commits/7517f86dc25edbabacc18bcb766f16f8b40b6795 |
|
52a2589
feat(udf): add ScalarUdf interface and Volatility enum
andygrove May 14, 2026
| https://github.com/apache/datafusion-java/pull/46/commits/52a2589c5100535a8cf31c8c4aeb1b0f266b9374 |
|
10c32bb
feat(udf): add JniBridge trampoline for per-call UDF invocation
andygrove May 14, 2026
| https://github.com/apache/datafusion-java/pull/46/commits/10c32bbbd88470a52f39b48aa92207d7cdb1313d |
|
b4df132
feat(native): add JavaScalarUdf skeleton implementing ScalarUDFImpl
andygrove May 14, 2026
| https://github.com/apache/datafusion-java/pull/46/commits/b4df1325ebda20a203cb109707d13917e919a049 |
|
36ce35f
feat(udf): register Java UDFs via SessionContext.registerUdf
andygrove May 14, 2026
| https://github.com/apache/datafusion-java/pull/46/commits/36ce35ff0a84b8d3859ccc4003881e805353e05d |
|
9d933c4
feat(udf): implement invoke_with_args via Arrow C Data Interface
andygrove May 14, 2026
| https://github.com/apache/datafusion-java/pull/46/commits/9d933c471bc54ccd10740419f4827b15c54d2316 |
|
264bcb0
fix(udf): plug exception leak, add SAFETY comment, validate row count…
andygrove May 14, 2026
| https://github.com/apache/datafusion-java/pull/46/commits/264bcb0f61ed610fb06f4d649dd62f7f117d4a11 |
|
742629c
test(udf): cover concat, square, and repeated invocations
andygrove May 14, 2026
| https://github.com/apache/datafusion-java/pull/46/commits/742629c1f42d170fa9c51bfde6a3c203c1a28bdc |
|
cf187a3
test(udf): cover null/wrong-rows/wrong-type/exception contract violat…
andygrove May 14, 2026
| https://github.com/apache/datafusion-java/pull/46/commits/cf187a3250cad238c0cadd51b0bd03b14d6cd047 |
|
4ef01fd
test(udf): cover multi-UDF, cross-session, and multi-row lifecycle
andygrove May 14, 2026
| https://github.com/apache/datafusion-java/pull/46/commits/4ef01fdc6af20a21c6fa6cf9568b503dca25eb89 |
|
086cba7
test(udf): exercise all three Volatility kinds
andygrove May 14, 2026
| https://github.com/apache/datafusion-java/pull/46/commits/086cba7e121c28fe4ab9a2d7339812ce41dc3538 |
|
0d06aa5
docs(udf): add user-guide page and runnable AddOne example
andygrove May 14, 2026
| https://github.com/apache/datafusion-java/pull/46/commits/0d06aa549d7abd3056633aa229bfe337a89877b7 |
|
296b3be
refactor(udf): null-guard registerUdf arguments and drop dead assertion
andygrove May 14, 2026
| https://github.com/apache/datafusion-java/pull/46/commits/296b3beb83cd168a21a9acfab83bf0ff1a87e320 |
|
d1c9803
refactor(udf): split ScalarUdf into ScalarFunction impl iface and hol…
andygrove May 17, 2026
| https://github.com/apache/datafusion-java/pull/46/commits/d1c9803eeeaa3a1fc5d97c7d43c236eef3008fdb |
|
Clear filters
| https://github.com/apache/datafusion-java/pull/46/files |
| Please reload this page | https://github.com/apache/datafusion-java/pull/46/files |
| Please reload this page | https://github.com/apache/datafusion-java/pull/46/files |
|
ScalarFunction.java
| https://github.com/apache/datafusion-java/pull/46/files#diff-bd89b23d6028824ee8aa496782bd8683b521588c78f471de76829dd3a74aadd3 |
|
ScalarUdf.java
| https://github.com/apache/datafusion-java/pull/46/files#diff-4e8a48ce1cf63fee2680588a132d8b235f86ba7c44a2afb9c817dd738a2c4de7 |
|
SessionContext.java
| https://github.com/apache/datafusion-java/pull/46/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e |
|
Volatility.java
| https://github.com/apache/datafusion-java/pull/46/files#diff-d8124c6b64df558f19f3cb95d577d0db531a86a6a8c8ed42c87547e26a733e32 |
|
JniBridge.java
| https://github.com/apache/datafusion-java/pull/46/files#diff-d8782084eee38e7e495ad13caf3a16d2c19b6eb7a1c290c9423e4d7224a5f2f3 |
|
DataFrameTransformationsTest.java
| https://github.com/apache/datafusion-java/pull/46/files#diff-0f4d6c073f539bbb3655a39b796b32698df9adc312c08e5ddb99d31c3ecb7923 |
|
ScalarUdfTest.java
| https://github.com/apache/datafusion-java/pull/46/files#diff-44b18e4a141ffd448eb762005708913dfd7d6209335637e5fdf6291a63410b26 |
|
index.md
| https://github.com/apache/datafusion-java/pull/46/files#diff-c5d556935b075b3f69ce1807990a7d6a6c59e8ecb075ffdceb6d96bdea1e1ec0 |
|
scalar-udf.md
| https://github.com/apache/datafusion-java/pull/46/files#diff-0c0208f26eacc9b3a2c6e9c178bc140ab31ff32d4d097b4971bfda47674626e9 |
|
AddOneExample.java
| https://github.com/apache/datafusion-java/pull/46/files#diff-69812f77b37e69bcc057b6c77b21304b26cf9af77d2692a827e3ca28188e4222 |
|
lib.rs
| https://github.com/apache/datafusion-java/pull/46/files#diff-697685fba8d3d4a3a8a287bad6e1369e50e1c98bd878823415758c2a642cbb6e |
|
udf.rs
| https://github.com/apache/datafusion-java/pull/46/files#diff-1c9a0800b6151fc16f2965eb70c73bcf80208567d7d14d2f6f28de9f59cdda8a |
| core/src/main/java/org/apache/datafusion/ScalarFunction.java | https://github.com/apache/datafusion-java/pull/46/files#diff-bd89b23d6028824ee8aa496782bd8683b521588c78f471de76829dd3a74aadd3 |
|
View file
| https://github.com/andygrove/datafusion-java/blob/d1c9803eeeaa3a1fc5d97c7d43c236eef3008fdb/core/src/main/java/org/apache/datafusion/ScalarFunction.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/apache/datafusion-java/pull/46/{{ revealButtonHref }} |
| core/src/main/java/org/apache/datafusion/ScalarUdf.java | https://github.com/apache/datafusion-java/pull/46/files#diff-4e8a48ce1cf63fee2680588a132d8b235f86ba7c44a2afb9c817dd738a2c4de7 |
|
View file
| https://github.com/andygrove/datafusion-java/blob/d1c9803eeeaa3a1fc5d97c7d43c236eef3008fdb/core/src/main/java/org/apache/datafusion/ScalarUdf.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/apache/datafusion-java/pull/46/{{ revealButtonHref }} |
| core/src/main/java/org/apache/datafusion/SessionContext.java | https://github.com/apache/datafusion-java/pull/46/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e |
|
View file
| https://github.com/andygrove/datafusion-java/blob/d1c9803eeeaa3a1fc5d97c7d43c236eef3008fdb/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/46/{{ revealButtonHref }} |
|
| https://github.com/apache/datafusion-java/pull/46/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e |
|
| https://github.com/apache/datafusion-java/pull/46/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e |
|
| https://github.com/apache/datafusion-java/pull/46/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e |
|
| https://github.com/apache/datafusion-java/pull/46/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e |
|
| https://github.com/apache/datafusion-java/pull/46/files#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e |
| core/src/main/java/org/apache/datafusion/Volatility.java | https://github.com/apache/datafusion-java/pull/46/files#diff-d8124c6b64df558f19f3cb95d577d0db531a86a6a8c8ed42c87547e26a733e32 |
|
View file
| https://github.com/andygrove/datafusion-java/blob/d1c9803eeeaa3a1fc5d97c7d43c236eef3008fdb/core/src/main/java/org/apache/datafusion/Volatility.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/apache/datafusion-java/pull/46/{{ revealButtonHref }} |
| core/src/main/java/org/apache/datafusion/internal/JniBridge.java | https://github.com/apache/datafusion-java/pull/46/files#diff-d8782084eee38e7e495ad13caf3a16d2c19b6eb7a1c290c9423e4d7224a5f2f3 |
|
View file
| https://github.com/andygrove/datafusion-java/blob/d1c9803eeeaa3a1fc5d97c7d43c236eef3008fdb/core/src/main/java/org/apache/datafusion/internal/JniBridge.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/apache/datafusion-java/pull/46/{{ revealButtonHref }} |
| core/src/test/java/org/apache/datafusion/DataFrameTransformationsTest.java | https://github.com/apache/datafusion-java/pull/46/files#diff-0f4d6c073f539bbb3655a39b796b32698df9adc312c08e5ddb99d31c3ecb7923 |
|
View file
| https://github.com/andygrove/datafusion-java/blob/d1c9803eeeaa3a1fc5d97c7d43c236eef3008fdb/core/src/test/java/org/apache/datafusion/DataFrameTransformationsTest.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/apache/datafusion-java/pull/46/{{ revealButtonHref }} |
|
| https://github.com/apache/datafusion-java/pull/46/files#diff-0f4d6c073f539bbb3655a39b796b32698df9adc312c08e5ddb99d31c3ecb7923 |
|
| https://github.com/apache/datafusion-java/pull/46/files#diff-0f4d6c073f539bbb3655a39b796b32698df9adc312c08e5ddb99d31c3ecb7923 |
| Please reload this page | https://github.com/apache/datafusion-java/pull/46/files |
| Please reload this page | https://github.com/apache/datafusion-java/pull/46/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |