Using JDBC driver (2.7.3) in OpenJDK 24 gives the following warning:
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by com.databricks.client.jdbc42.internal.apache.arrow.memory.util.MemoryUtil
WARNING: Please consider reporting this to the maintainers of class com.databricks.client.jdbc42.internal.apache.arrow.memory.util.MemoryUtil
WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release
While it's uncertain what Java release it will be deprecated in, I think this needs to be fixed sooner rather than later. Java's new FFM API provides a nice way of handling Off-Heap memory and probably would fix whatever this MemoryUtil class is trying to do in a safe way. There are also other alternatives.
Thanks,
Ben