Skip to content

Python package and CLI 2.3.1

Cap concurrent Snowflake statements.

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==2.3.1"

For the latest installation instructions, see Install and run PyRel.

  • Model deployment now supports limiting how many Snowflake statements run at once by setting DeploymentConfig.max_deploy_concurrency to a positive integer in the deployment section of raiconfig.yaml (default: 128). Lower values can help when many simultaneous Snowflake connections cause errors but may make deployment take longer.
  • Fixed an issue that caused scheduled refreshes for deployed models to recompute unchanged data when Snowflake change tracking was off. Refreshes now skip that work but still run when sources change or the model can produce different results from the same inputs.

  • Fixed an issue that caused a credentialed SnowflakeConnection to reuse an already-open Snowflake session from another account in the same Python process. It now opens a session with its configured credentials.

  • Fixed an issue that caused re.match() and re.fullmatch() to match substrings. re.match() now matches from the beginning or supplied offset, while re.fullmatch() must match through the whole value from that point. Use re.search() for matches anywhere.

  • Fixed an issue that caused Python Decimal, date, and datetime values to fail as defaults with Variable.__or__() or as branches in Model.union().

  • Fixed an issue that caused most comparisons between integers or decimals and Float values to fail. All six comparison operators now work without an explicit cast, but converting to Float can lose precision above roughly 15 significant digits.

  • Fixed an issue that caused Model.not_() queries to return values they were meant to exclude when those values came only from union or a | match expression. The query now excludes those values, so remove the negated condition if you want to keep them.