What JDK version does Snowflake support for Java UDFs?

Viewed 165
1 Answers

A quick introspection with a Java UDF in Snowflake will answer the question:

create or replace function jdk()
returns string
language java
handler='MyClass.jdk'
as
$$
    class MyClass {
        public static String jdk() {
          return System.getProperty("java.version");
        }
    }
$$;

select jdk();

The current answer is 11.0.8 -- which will probably get upgraded to 17 once its released LTS.

enter image description here

Related