Skip to content

Python API Release Notes

1.12.0

Python SDK


Version 1.12.0 of the relationalai Python package is now available!

To upgrade, activate your virtual environment and run the following command:

pip install --upgrade relationalai

New Features and Enhancements

  • You can now use aggregates.product() to compute the product of numeric values in PyRel queries. Before 1.12.0, the standard aggregates module did not include a built-in product aggregate.

  • rai doctor:report now includes expanded diagnostics.

1.11.0

Python SDK


Version 1.11.0 of the relationalai Python package is now available!

To upgrade, activate your virtual environment and run the following command:

pip install --upgrade relationalai

Bug Fix

  • PyRel now stops at the first model compilation error. Before this fix, PyRel could continue and fail later with a less clear error.

1.10.0

Python SDK


Version 1.10.0 of the relationalai Python package is now available!

To upgrade, activate your virtual environment and run the following command:

pip install --upgrade relationalai

New Features and Enhancements

  • You can now use stddev_samp() in PyRel queries to compute sample standard deviation. Before 1.10.0, you had to compute it outside PyRel or build it from lower-level operations.

  • rai doctor:report now provides more detail when you troubleshoot deployment-role issues or share environment details with support. It adds Snowflake task execute privilege diagnostics and richer version metadata.

Bug Fixes

  • Imports for the prescriptive and predictive reasoner packages now work on Python 3.11 or later. Before this fix, imports could fail because of an invalid dataclass default.

  • SQL-backed select() queries no longer return unexpected duplicate rows when you use distinct().

  • Some Snowflake deployments no longer fail when models read Snowflake-backed data sources through CDC. Before this fix, deployments could materialize those inputs as unsupported dynamic tables instead of CDC-compatible tables with change tracking.

1.9.0

Python SDK


Version 1.9.0 of the relationalai Python package is now available!

To upgrade, activate your virtual environment and run the following command:

pip install --upgrade relationalai

Upgrade Notes

  • If your code uses filter_by() on Concept or Ref, it now emits a Python DeprecationWarning in 1.9.0. Your existing code still works in 1.9.0. Use .lookup() instead of filter_by() going forward.

New Features and Enhancements

  • Prescriptive solve() now helps you inspect solved models and diagnose infeasible ones. Use solve(sensitivity=True) after solving to inspect solve diagnostics such as reduced costs and constraint sensitivity. Use solve(conflict=True) to identify infeasibility conflicts, then check solve_info().conflict_status.

  • PyRel 1.9.0 improves CLI diagnostics. rai doctor now prints live health checks, and doctor:report collects diagnostic artifacts for support.

Bug Fixes

  • Fixed a bug where queries using top(), bottom(), or limit() could fail with a SQL parser error.

  • When raiconfig.yaml contains placeholders, rai doctor now identifies the missing configuration instead of failing with a raw connection error.

  • If you use grouped optional aggregates over stored relationships, those Snowflake-backed queries now run correctly. Before this fix, they could fail with Unsupported subquery type cannot be evaluated.

1.8.1

Python SDK


Version 1.8.1 of the relationalai Python package is now available!

To upgrade, activate your virtual environment and run the following command:

pip install --upgrade relationalai

New Features and Enhancements