Skip to content
Advertisement

Snowflake exception While unwrapping snowflake objects

I am Using snowflake-jdbc-13.3.8.jar. while executing below code having unwrap call, I am getting exception. Pls guide what am I missing?

JavaScript

Advertisement

Answer

You’re calling getQueryId() rather than getQueryID(), observe ID is in capitals. The unwrap works, here is an example.

First I create a simple stored procedure:

JavaScript

I test it to see it works:

JavaScript

It returns to me just the string “Done”.

Then I create a simple Java class:

JavaScript

When I run it I get the queryID back:

JavaScript

Post the full class and details about environment if it’s still not working for you.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement