Announcing the winners & finalists of the Dataiku Frontrunner Awards 2021! Read their inspiring stories

Renaming SQL Connection

Solved!
DriesB
Level 1
Renaming SQL Connection

Hi Dataiku Community,

My team is currently in the process of migrating to a single Snowflake connection. Next to deprecating the old connection, we would like to rename the single connection we want to keep.

We noticed renaming from the Connection Settings page is not an option. However, it seems like we would be able to override the name from the Python API.

Is there a particular reason the name cannot be changed on the Connection page and what are the considerations before renaming a connection?

Best,

Dries

0 Kudos
1 Solution
AlexT
Dataiker
Dataiker

Hi,

Renaming the connection has other implications. Any references to that connection in datasets, user code, etc.  Would also need to be updated and it could be a dangerous operation hence why it's not provided in the UI.

As an alternative, we would usually suggest creating a new connection with the same settings and manually moving the datasets to the new connection, and rebuild the datasets.

If there are many datasets and changing these manually is not feasible using those connections then use the Public API :

https://doc.dataiku.com/dss/latest/python-api/datasets-reference.html#dataikuapi.dss.dataset.DSSData... 

https://doc.dataiku.com/dss/latest/python-api/projects.html#dataikuapi.dss.project.DSSProject.list_d...

You would also need to review your notebooks, plugin for any hardcoded values for the connection. 

Please note once changing the settings of the dataset with the new connection those datasets should also need to be rebuilt. 

 

View solution in original post

1 Reply
AlexT
Dataiker
Dataiker

Hi,

Renaming the connection has other implications. Any references to that connection in datasets, user code, etc.  Would also need to be updated and it could be a dangerous operation hence why it's not provided in the UI.

As an alternative, we would usually suggest creating a new connection with the same settings and manually moving the datasets to the new connection, and rebuild the datasets.

If there are many datasets and changing these manually is not feasible using those connections then use the Public API :

https://doc.dataiku.com/dss/latest/python-api/datasets-reference.html#dataikuapi.dss.dataset.DSSData... 

https://doc.dataiku.com/dss/latest/python-api/projects.html#dataikuapi.dss.project.DSSProject.list_d...

You would also need to review your notebooks, plugin for any hardcoded values for the connection. 

Please note once changing the settings of the dataset with the new connection those datasets should also need to be rebuilt. 

 

View solution in original post

A banner prompting to get Dataiku DSS