To recap, as @balaji.ramaswamy wrote, Dremio is still only supporting JDK 8 and 11 (JDK 11 from Dremio 20+) server side at this point in time.
Running JDK17 on the client does work, but, like in @mversiani 's case, the Arrow Flight driver would fail in Debian 12 unless you set JAVA_TOOL_OPTIONS to “–add-opens=java.base/java.nio=ALL-UNNAMED”.