Skip to content

Python package and CLI 1.26.1

Improves rai models CLI commands and fixes several bugs.

How to install this version

Review the changes below before installing. To install this version, activate a compatible Python virtual environment and run:

Terminal window
python -m pip install "relationalai==1.26.1"

For the latest installation instructions, see Start building with PyRel.

  • Your first rai models deploy on a new branch now works without a manual rai models pull first. rai models switch pulls the branch for you. A bare rai models pull also now defaults --path to the model.path in your raiconfig.yaml.

  • Tearing down a parent branch now removes its child branches too, instead of leaving them orphaned and unable to pull or merge. As a safeguard, rai models teardown --allow-children stops when a child has unmerged changes until you also pass --allow-unmerged. rai models list and rai doctor report now flag any branches orphaned by an earlier teardown.

  • The rai models commands now recognize when the schema you name is already your active model branch, instead of acting as if it changed. rai models switch no longer prints a false “Switched” message, rai models branch tells you to pick a different name instead of erroring, and rai models list marks your active schema with a *.

  • Fixed a bug that caused queries using union() to run slowly and, in some cases, hang indefinitely.

  • Fixed a bug that could cause aggregates grouped with per() to evaluate incorrectly when used solely as a filter and not selected in the query results.

Fixed a bug that caused aggregates grouped by an entity with a composite key to evaluate incorrectly.

  • Fixed an issue that could cause an “invalid identifier” error when deploying a model.

  • Fixed a bug that could case an “Object does not exist” error when deploying a model to a case-sensitive schema name.

  • Fixed a bug where a deploy could fail when a Snowflake view or dynamic table (an auto-refreshing Snowflake table) was created before another object it reads from.

  • Fixed a bug where deploying an unedited rai models init project could fail immediately with a “Symbol … is already registered” error.

  • Fixed a bug that could cause redeploying a model without any changes could fail.

  • Fixed an issue that prevented model re-deploys from picking up changes to a data sources Snowflake object.

  • Fixed a model deployment bug that ignored a user-supplied Snowpark session passed to create_config(), which is supposed to override any auto-detected Snowpark session.

  • Fixed a bug that could cause rai models pull or rai models merge to generate a runnable shared_model.py file. If you encountered this bug, pull or merge again to regenerate a corrected shared_model.py.