DATABASES Signal 134
DuckDB Table Functions in Java
The DuckDB Java client can now register table functions written in pure Java, allowing any Java-accessible data source to be queried as a SQL table without writing C++ extensions.
Previously, extending DuckDB with custom data sources required C++ extensions with complex build toolchains and the risk of segfaults crashing the entire JVM. Pure-Java table functions are ordinary Maven dependencies that run safely alongside the application, making it practical to expose proprietary or authenticated data sources as SQL tables for heterogeneous joins.
Written by elseif from the cluster below · every claim links back to a sourceThe three things worth knowing
Table functions can now be written in pure Java instead of requiring C++ extensions with complex build systems.
Pure-Java table functions run as ordinary Maven dependencies on the JVM, eliminating segfault risk to the host process.
Any JVM language (Kotlin, Scala, Clojure) can implement table functions, reusing existing streaming and async client libraries.
THE CLUSTER