Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1467213: Unsupported statement type 'SHOW PARAMETERS' for services in application #110

Closed
s1ck opened this issue Jun 7, 2024 · 1 comment

Comments

@s1ck
Copy link

s1ck commented Jun 7, 2024

Hi, I am using the SDK from within a container service in a native application. After successfully creating a session, I am creating a table object via session.table(tableName);. That call fails with the following stacktrace. This runs fine if the container service is not executed inside an application.

I am using a patched version of the snowpark-java SDK with scala 2.13 supprt based off this PR: #90

Any suggestions would be highly appreciated.

2024-06-07 13:05:06.596+0000 INFO  [system/00000000] Session created: {
 "snowpark.version" : "1.14.0-SNAPSHOT",
 "client.language": "Java",
 "java.version" : "21.0.3",
 "scala.version" : "2.13.13",
 "jdbc.session.id" : "430879710667274",
 "os.name" : "Linux",
 "jdbc.version" : "3.16.0",
 "snowpark.library" : "/var/lib/neo4j/gds-session.jar",
 "scala.library" : "/var/lib/neo4j/gds-session.jar",
 "jdbc.library" : "/var/lib/neo4j/gds-session.jar"
}
2024-06-07 13:05:06.596+0000 INFO  [system/00000000] Starting node building
2024-06-07 13:05:06.766+0000 ERROR [system/00000000] Exception occurred
com.snowflake.snowpark.SnowparkClientException: Error Code: 0415, Error message: Failed to close this session. The error is: Unsupported statement type 'SHOW PARAMETERS' for services in application.
	at com.snowflake.snowpark.internal.ErrorMessage$.createException(ErrorMessage.scala:424) ~[gds-session.jar:2.7.0-alpha04]
	at com.snowflake.snowpark.internal.ErrorMessage$.MISC_FAILED_CLOSE_SESSION(ErrorMessage.scala:380) ~[gds-session.jar:2.7.0-alpha04]
	at com.snowflake.snowpark.Session.close(Session.scala:1254) ~[gds-session.jar:2.7.0-alpha04]
	at com.snowflake.snowpark_java.Session.close(Session.java:484) ~[gds-session.jar:2.7.0-alpha04]
	at com.neo4j.gds.snowflake.GraphCatalogHandlers.callWithSession(GraphCatalogHandlers.java:233) ~[gds-session.jar:2.7.0-alpha04]
@github-actions github-actions bot changed the title Unsupported statement type 'SHOW PARAMETERS' for services in application SNOW-1467213: Unsupported statement type 'SHOW PARAMETERS' for services in application Jun 7, 2024
@s1ck
Copy link
Author

s1ck commented Jun 12, 2024

We figured that one out. The problem was that we did not set an appName when building the Session object. That app name is used as queryTag and if that tag is set, the connection does not lookup parameters via SHOW PARAMETERS. I have not found a hint towards that in the docs, some doc section on creating a session from within a container service in a native application could be helpful.

@s1ck s1ck closed this as completed Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant