What's New in Version 1.23.1
Version 1.23.1 of the relationalai Python package is now available!
To upgrade, activate your virtual environment and run the following command:
pip install --upgrade relationalaiNew Features and Enhancements
Section titled “New Features and Enhancements”- A new project you create with
rai models initnow deploys to Snowflake without you having to add a refresh schedule by hand. Before this release,rai models deployfailed on a brand-new project with anUnscheduled Outputserror, because the generatedraiconfig.yamldidn’t say how often to refresh the deployed tables and views. The config now includes a default refresh schedule withinterval_s: 0, which refreshes the outputs each time you deploy but not on a fixed interval, so the deploy succeeds.
Bug Fixes
Section titled “Bug Fixes”-
If you haven’t filled in your Snowflake connection details yet, PyRel now stops with a clear error message naming the values you need to fill in, instead of a confusing raw Snowflake error. For example, a new project’s
raiconfig.yamlmight still have the placeholderaccount: myorg-myaccount. PyRel runs this check the first time it opens a Snowflake connection, so you see the message early, whether you run a script, run a query, or deploy your model. -
The
rai debuggercan now open the logs from large programs without freezing. The debugger also has a new Collapse all button that closes every open section at once, and opening one section no longer expands the other sections with the same name. -
Pulling or merging a shared model now correctly rebuilds models that earlier releases could rebuild incorrectly. When you run
rai models pullorrai models merge, PyRel regenerates the shared model’s code from your team’s changes. Before this release, pull and merging a shared a model could sometimes result in models that failed to build. -
You can now call
solve()again on the same prescriptiveProblemwhile asking for fewer of its optionalsensitivityandconflictresults. Before this release, re-solving without asensitivityorconflictresult you had requested earlier raised an error. Now the re-solve succeeds. On current RelationalAI platform versions, it also clears the results you no longer request, so you don’t see stale numbers from an earlier solve. You still can’t switch between a plain solve and asensitivityorconflictsolve on the sameProblem. Create a newProblemfor that.