kedro-datasets: Session management in SnowparkTableDataset
when only credentials
is passed
#972
Labels
Community
Issue/PR opened by the open-source community
Description
The session is not correctly activated in
SnowparkTableDataset
. If the dataset is created withcredentials
(session
is not passed to the constructor), the_session
attribute ofSnowparkTableDataset
is not set, which results inDatasetError: No active session. Please initialise a Snowpark session before loading data.
while trying to load/save data. Shouldn'tsession
property be used in loading/saving methods instead of_session
? The current behaviour was introduced in this commit: 59dcf50#diff-93abe0549a1ccefcf14c67b5417fdca1c87f55f06bf66e674792dd541aca960eR177Context
The session is not correctly managed while passing only
credentials
(nosession
) toSnowparkTableDataset
constructor -> can't load/save data.Steps to Reproduce
SnowparkTableDataset
passing onlycredentials
(notsession
)Expected Result
_get_session
method is invoked inSnowparkTableDataset
and data can be saved/loaded.Actual Result
Error saying session is not initialised.
Your Environment
The text was updated successfully, but these errors were encountered: