You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before those changes, setting the app name just set the query_tag on the session and no query was issued.
A workaround is to not set the appName when building a session, and then call session.setQueryTag(appName).
I still think this should be considered breaking and I wonder if your integration testing should include running the SDK from within container services?
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Changes in Session construction break services in SPCS applications
SNOW-1735997: Changes in Session construction break services in SPCS applications
Oct 14, 2024
I was upgrading from 1.12.1 to 1.14.0 and discovered breaking behavior for our Snowpark Container Services.
The main issue is
Unsupported statement type 'SHOW PARAMETERS' for services in application.
SHOW PARAMETERS
is triggered due to changes that have been introduced in#115
#116
When creating a session, e.g.
Session.builder().appName(APP_NAME).configs(connectionParams).create();
, thecreate
method triggers a new functionupdateQueryTag
which eventually leads to this call https://github.com/snowflakedb/snowpark-java-scala/pull/115/files#diff-906df2b68b971b63df14181fd6af77ffb9b7276fbf15d12ff45241ea20a4fd0eR375 which triggers the above error for applications within container services.Before those changes, setting the app name just set the query_tag on the session and no query was issued.
A workaround is to not set the
appName
when building a session, and then callsession.setQueryTag(appName)
.I still think this should be considered breaking and I wonder if your integration testing should include running the SDK from within container services?
The text was updated successfully, but these errors were encountered: