René's URL Explorer Experiment


Title: feat: add Java scalar UDF support by andygrove · Pull Request #46 · apache/datafusion-java · GitHub

Open Graph Title: feat: add Java scalar UDF support by andygrove · Pull Request #46 · apache/datafusion-java

X Title: feat: add Java scalar UDF support by andygrove · Pull Request #46 · apache/datafusion-java

Description: Java bindings for Apache DataFusion. Contribute to apache/datafusion-java development by creating an account on GitHub.

Open Graph Description: 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...

X Description: 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...

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

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/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:a129cc77-2a11-cd6f-3ad5-4a45229ae587
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE5E2:31A4A2:1CEECD:292432:6B0467B1
html-safe-nonce988452e0e1870ece64ec1e4cbc5294b8e4c977fa866d78ef5829fc773aa6d0f5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUUyOjMxQTRBMjoxQ0VFQ0Q6MjkyNDMyOjZCMDQ2N0IxIiwidmlzaXRvcl9pZCI6IjI1NTE0MjIwNTk4MDkxMDU4NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb8ea3b2be36dfdc003d934370e288ef2c77076188bd6c077f46134b48d28e84b
hovercard-subject-tagpull_request:3679848072
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/apache/datafusion-java/46/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f4823b1ec8b58ae8cdd05c3ec806546d7d783a0b666a9df7f1d865338fde3868/apache/datafusion-java/pull/46
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f4823b1ec8b58ae8cdd05c3ec806546d7d783a0b666a9df7f1d865338fde3868/apache/datafusion-java/pull/46
og:image:altWhich 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:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameandygrove
hostnamegithub.com
expected-hostnamegithub.com
None83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f
turbo-cache-controlno-cache
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
disable-turbofalse
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
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/apache/datafusion-java/pull/46#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F46
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%2F46
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=apache%2Fdatafusion-java
Reloadhttps://github.com/apache/datafusion-java/pull/46
Reloadhttps://github.com/apache/datafusion-java/pull/46
Reloadhttps://github.com/apache/datafusion-java/pull/46
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
https://github.com/apache/datafusion-java
andygrovehttps://github.com/andygrove
apache:mainhttps://github.com/apache/datafusion-java/tree/main
andygrove:feat/scalar-udfhttps://github.com/andygrove/datafusion-java/tree/feat/scalar-udf
Conversationhttps://github.com/apache/datafusion-java/pull/46
Commits14 (14)https://github.com/apache/datafusion-java/pull/46/commits
Checkshttps://github.com/apache/datafusion-java/pull/46/checks
Files changedhttps://github.com/apache/datafusion-java/pull/46/files
feat: add Java scalar UDF supporthttps://github.com/apache/datafusion-java/pull/46#top
andygrovehttps://github.com/andygrove
apache:mainhttps://github.com/apache/datafusion-java/tree/main
andygrove:feat/scalar-udfhttps://github.com/andygrove/datafusion-java/tree/feat/scalar-udf
https://github.com/andygrove
andygrovehttps://github.com/andygrove
May 14, 2026https://github.com/apache/datafusion-java/pull/46#issue-4442220815
Please reload this pagehttps://github.com/apache/datafusion-java/pull/46
Please reload this pagehttps://github.com/apache/datafusion-java/pull/46
andygrovehttps://github.com/andygrove
May 13, 2026 17:06https://github.com/apache/datafusion-java/pull/46#commits-pushed-7517f86
https://github.com/andygrove
feat(native): cache JavaVM in OnceLock via JNI_OnLoadhttps://github.com/apache/datafusion-java/pull/46/commits/7517f86dc25edbabacc18bcb766f16f8b40b6795
7517f86https://github.com/apache/datafusion-java/pull/46/commits/7517f86dc25edbabacc18bcb766f16f8b40b6795
https://github.com/andygrove
feat(udf): add ScalarUdf interface and Volatility enumhttps://github.com/apache/datafusion-java/pull/46/commits/52a2589c5100535a8cf31c8c4aeb1b0f266b9374
52a2589https://github.com/apache/datafusion-java/pull/46/commits/52a2589c5100535a8cf31c8c4aeb1b0f266b9374
https://github.com/andygrove
feat(udf): add JniBridge trampoline for per-call UDF invocationhttps://github.com/apache/datafusion-java/pull/46/commits/10c32bbbd88470a52f39b48aa92207d7cdb1313d
10c32bbhttps://github.com/apache/datafusion-java/pull/46/commits/10c32bbbd88470a52f39b48aa92207d7cdb1313d
https://github.com/andygrove
feat(native): add JavaScalarUdf skeleton implementing ScalarUDFImplhttps://github.com/apache/datafusion-java/pull/46/commits/b4df1325ebda20a203cb109707d13917e919a049
b4df132https://github.com/apache/datafusion-java/pull/46/commits/b4df1325ebda20a203cb109707d13917e919a049
https://github.com/andygrove
feat(udf): register Java UDFs via SessionContext.registerUdfhttps://github.com/apache/datafusion-java/pull/46/commits/36ce35ff0a84b8d3859ccc4003881e805353e05d
36ce35fhttps://github.com/apache/datafusion-java/pull/46/commits/36ce35ff0a84b8d3859ccc4003881e805353e05d
https://github.com/andygrove
feat(udf): implement invoke_with_args via Arrow C Data Interfacehttps://github.com/apache/datafusion-java/pull/46/commits/9d933c471bc54ccd10740419f4827b15c54d2316
9d933c4https://github.com/apache/datafusion-java/pull/46/commits/9d933c471bc54ccd10740419f4827b15c54d2316
https://github.com/andygrove
fix(udf): plug exception leak, add SAFETY comment, validate row count…https://github.com/apache/datafusion-java/pull/46/commits/264bcb0f61ed610fb06f4d649dd62f7f117d4a11
264bcb0https://github.com/apache/datafusion-java/pull/46/commits/264bcb0f61ed610fb06f4d649dd62f7f117d4a11
https://github.com/andygrove
test(udf): cover concat, square, and repeated invocationshttps://github.com/apache/datafusion-java/pull/46/commits/742629c1f42d170fa9c51bfde6a3c203c1a28bdc
742629chttps://github.com/apache/datafusion-java/pull/46/commits/742629c1f42d170fa9c51bfde6a3c203c1a28bdc
https://github.com/andygrove
test(udf): cover null/wrong-rows/wrong-type/exception contract violat…https://github.com/apache/datafusion-java/pull/46/commits/cf187a3250cad238c0cadd51b0bd03b14d6cd047
cf187a3https://github.com/apache/datafusion-java/pull/46/commits/cf187a3250cad238c0cadd51b0bd03b14d6cd047
https://github.com/andygrove
test(udf): cover multi-UDF, cross-session, and multi-row lifecyclehttps://github.com/apache/datafusion-java/pull/46/commits/4ef01fdc6af20a21c6fa6cf9568b503dca25eb89
4ef01fdhttps://github.com/apache/datafusion-java/pull/46/commits/4ef01fdc6af20a21c6fa6cf9568b503dca25eb89
https://github.com/andygrove
test(udf): exercise all three Volatility kindshttps://github.com/apache/datafusion-java/pull/46/commits/086cba7e121c28fe4ab9a2d7339812ce41dc3538
086cba7https://github.com/apache/datafusion-java/pull/46/commits/086cba7e121c28fe4ab9a2d7339812ce41dc3538
https://github.com/andygrove
docs(udf): add user-guide page and runnable AddOne examplehttps://github.com/apache/datafusion-java/pull/46/commits/0d06aa549d7abd3056633aa229bfe337a89877b7
0d06aa5https://github.com/apache/datafusion-java/pull/46/commits/0d06aa549d7abd3056633aa229bfe337a89877b7
https://github.com/andygrove
refactor(udf): null-guard registerUdf arguments and drop dead assertionhttps://github.com/apache/datafusion-java/pull/46/commits/296b3beb83cd168a21a9acfab83bf0ff1a87e320
296b3behttps://github.com/apache/datafusion-java/pull/46/commits/296b3beb83cd168a21a9acfab83bf0ff1a87e320
https://github.com/pgwhalen
pgwhalenhttps://github.com/pgwhalen
May 17, 2026 https://github.com/apache/datafusion-java/pull/46#pullrequestreview-4305894369
View reviewed changes https://github.com/apache/datafusion-java/pull/46/files/296b3beb83cd168a21a9acfab83bf0ff1a87e320
pgwhalenhttps://github.com/pgwhalen
https://github.com/apache/datafusion-java/pull/46#pullrequestreview-4305894369
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/apache/datafusion-java/pull/46
core/src/main/java/org/apache/datafusion/SessionContext.javahttps://github.com/apache/datafusion-java/pull/46/files/296b3beb83cd168a21a9acfab83bf0ff1a87e320#diff-9aa9338a7364e93d5e2e4547564e7eb08e65a70f6d51b6fa896325cd4d87451e
pgwhalenhttps://github.com/pgwhalen
May 17, 2026https://github.com/apache/datafusion-java/pull/46#discussion_r3255090886
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
equivalent rust functionhttps://docs.rs/datafusion/latest/datafusion/execution/context/struct.SessionContext.html#method.register_udf
herehttps://github.com/pgwhalen/datafusion-java/blob/datafusion-ffi-java/datafusion-ffi-java/src/main/java/org/apache/arrow/datafusion/logical_expr/ScalarUDF.java
Public APIhttps://github.com/pgwhalen/datafusion-java/blob/datafusion-ffi-java/.claude/rules/public-api.md
documenting ithttps://github.com/pgwhalen/datafusion-java/blob/datafusion-ffi-java/.claude/rules/documentation.md
Please reload this pagehttps://github.com/apache/datafusion-java/pull/46
andygrovehttps://github.com/andygrove
May 17, 2026https://github.com/apache/datafusion-java/pull/46#discussion_r3255384972
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/apache/datafusion-java/pull/46
docs/source/user-guide/scalar-udf.mdhttps://github.com/apache/datafusion-java/pull/46/files/296b3beb83cd168a21a9acfab83bf0ff1a87e320#diff-0c0208f26eacc9b3a2c6e9c178bc140ab31ff32d4d097b4971bfda47674626e9
pgwhalenhttps://github.com/pgwhalen
May 17, 2026https://github.com/apache/datafusion-java/pull/46#discussion_r3255165763
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/apache/datafusion-java/pull/46
native/src/udf.rshttps://github.com/apache/datafusion-java/pull/46/files/296b3beb83cd168a21a9acfab83bf0ff1a87e320#diff-1c9a0800b6151fc16f2965eb70c73bcf80208567d7d14d2f6f28de9f59cdda8a
pgwhalenhttps://github.com/pgwhalen
May 17, 2026https://github.com/apache/datafusion-java/pull/46#discussion_r3255172936
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
session configurable optionhttps://github.com/pgwhalen/datafusion-java/blob/1c20733aa8b008315af6092a912b58ef3df6a482/datafusion-ffi-java/src/main/java/org/apache/arrow/datafusion/config/ConfigOptions.java#L50-L54
Please reload this pagehttps://github.com/apache/datafusion-java/pull/46
andygrovehttps://github.com/andygrove
May 17, 2026https://github.com/apache/datafusion-java/pull/46#discussion_r3255383544
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#55https://github.com/apache/datafusion-java/issues/55
Please reload this pagehttps://github.com/apache/datafusion-java/pull/46
https://github.com/andygrove
andygrovehttps://github.com/andygrove
May 17, 2026 https://github.com/apache/datafusion-java/pull/46#ref-issue-4464583306
Propagate Java stack traces from JVM upcalls into DataFusionError #55 https://github.com/apache/datafusion-java/issues/55
https://github.com/andygrove
refactor(udf): split ScalarUdf into ScalarFunction impl iface and hol…https://github.com/apache/datafusion-java/pull/46/commits/d1c9803eeeaa3a1fc5d97c7d43c236eef3008fdb
d1c9803https://github.com/apache/datafusion-java/pull/46/commits/d1c9803eeeaa3a1fc5d97c7d43c236eef3008fdb
https://github.com/andygrove
andygrovehttps://github.com/andygrove
May 17, 2026 19:57https://github.com/apache/datafusion-java/pull/46#event-25632220225
https://github.com/andygrove
andygrovehttps://github.com/andygrove
pgwhalenhttps://github.com/pgwhalen
May 17, 2026 20:07https://github.com/apache/datafusion-java/pull/46#event-25632354871
https://github.com/pgwhalen
pgwhalenhttps://github.com/pgwhalen
May 18, 2026 https://github.com/apache/datafusion-java/pull/46#pullrequestreview-4306916698
View reviewed changes https://github.com/apache/datafusion-java/pull/46/files/d1c9803eeeaa3a1fc5d97c7d43c236eef3008fdb
pgwhalenhttps://github.com/pgwhalen
https://github.com/apache/datafusion-java/pull/46#pullrequestreview-4306916698
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
The version from my bindingshttps://github.com/pgwhalen/datafusion-java/blob/datafusion-ffi-java/.claude/rules/ffi.md
@timsaucerhttps://github.com/timsaucer
Please reload this pagehttps://github.com/apache/datafusion-java/pull/46
https://github.com/andygrove
andygrovehttps://github.com/andygrove
May 18, 2026https://github.com/apache/datafusion-java/pull/46#issuecomment-4473932820
The version from my bindingshttps://github.com/pgwhalen/datafusion-java/blob/datafusion-ffi-java/.claude/rules/ffi.md
@timsaucerhttps://github.com/timsaucer
Please reload this pagehttps://github.com/apache/datafusion-java/pull/46
https://github.com/andygrove
andygrovehttps://github.com/andygrove
dd5d6fchttps://github.com/apache/datafusion-java/commit/dd5d6fc7f3442231540c4e18a65656c2929e8f81
May 18, 2026https://github.com/apache/datafusion-java/pull/46#event-25639054795
Please reload this pagehttps://github.com/apache/datafusion-java/pull/46
https://github.com/andygrove
andygrovehttps://github.com/andygrove
May 18, 2026 03:20https://github.com/apache/datafusion-java/pull/46#event-25639055593
https://github.com/LantaoJin
LantaoJinhttps://github.com/LantaoJin
May 18, 2026 https://github.com/apache/datafusion-java/pull/46#ref-pullrequest-4466966706
fix(udf): pass batch row count to ScalarFunction.evaluate #57 https://github.com/apache/datafusion-java/pull/57
https://github.com/pgwhalen
pgwhalenhttps://github.com/pgwhalen
May 18, 2026https://github.com/apache/datafusion-java/pull/46#issuecomment-4477888527
Please reload this pagehttps://github.com/apache/datafusion-java/pull/46
https://github.co/hiddenchars
https://github.com/apache/datafusion-java/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fdatafusion-java%2Fpull%2F46
https://github.com/pgwhalen
pgwhalen https://github.com/pgwhalen
https://github.com/apache/datafusion-java/pull/46/files/d1c9803eeeaa3a1fc5d97c7d43c236eef3008fdb
Please reload this pagehttps://github.com/apache/datafusion-java/pull/46
Please reload this pagehttps://github.com/apache/datafusion-java/pull/46
https://github.com/andygrove
https://github.com/pgwhalen
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.