Source
Analyzing queries and troubleshooting with Snowpark Java
To inspect the evaluation plan of a DataFrame, call the explain method of the DataFrame. This prints the SQL statements used to evaluate the DataFrame. If there is only one SQL statement, the method also prints the logical plan for the…
JDBC driver with -Dhttp.nonProxyHosts=* set throws java.lang.StringIndexOutOfBoundsException: begin 1, end 0, length 1
ISSUE: When using the JDBC driver's diagnostics feature (i.e., ENABLE_DIAGNOSTICS=TRUE)1, if the -Dhttp.nonProxyHosts=* JVM argument is set, the following exception can occur on some Java versions: java.lang.RuntimeException: java.lang.St…
ERROR: "Exception in thread "main" java.io.IOException: ObjectIdentifier() -- data isn't an object ID (tag = 48)" while using Public/Private Key Pair Authentication with Snowflake JDBC Driver.
ERROR: "Exception in thread "main" java.io.IOException: ObjectIdentifier() - - data isn't an object ID (tag = 48)" while using Public/Private Key Pair Authentication with Snowflake JDBC Driver.
JDBC driver throws javax.naming.CommunicationException: DNS error (Root exception: java.net.SocketTimeoutException)
ISSUE: The following exception occurs on macOS (aarch64) when using the JDBC driver’s diagnostic feature (i.e., ENABLE_DIAGNOSTICS=TRUE)…
Exception 'java.net.UnknownHostException' when connecting to scoped stage file URLs within Snowpark Java functions
CAUSE: Snowpark (Java, Scala, Python, etc.) functions execute in secure sandboxes over the Snowflake virtual warehouses and are not permitted to make any network related syscalls, including DNS resolution.
JDBC Driver Compatibility Issue With JDK 16 and Later: Exception creating result java.lang.ExceptionInInitializerError at net.snowflake.client.jdbc.internal.apache.arrow.memory.UnsafeAllocationManager
CAUSE: The failure is directly caused by one of the JDBC driver's dependencies, Apache Arrow, when attempting to use reflection in order to access a private member of the java.nio.Buffer class. This was allowed by Java previously, but not…
Can JavaScript/Java API functionalities such as connection.createStatement be used inside UDF?
User cannot create or use statements such as connection.createStatement inside UDF (not even in JavaScript UDF). This is as per the design of the Snowflake server. Example: If we try to create a Connection and Statement object inside Java…
Java UDF is not keeping the timezone offset information when using Timestamp data type
ISSUE: When Timestamp data is being used in a Java UDF, the timezone information (offset) will be dropped, as can be seen from the following example:Example: CREATE OR REPLACE FUNCTION "JAVA_REFLECT_TIMESTAMP_TZ"("I" TIMESTAMP_TZ) RETURNS…