Python package and CLI 1.17.0
PyRel 1.17.0 adds relationship keyword arguments, supports per(...).product(...), 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:
python -m pip install "relationalai==1.17.0"For the latest installation instructions, see Start building with PyRel.
New Features and Enhancements
Section titled “New Features and Enhancements”-
Added keyword field binding for
Relationshipcalls. For example, if a relationship hassrc,transfer, anddstfields, you can write:Account.transferred_to(src=source, transfer=transfer, dst=destination)In addition to not having to pass fields in order, you also get clearer errors for missing fields and unknown fields.
-
Added support for
per(...).product(...)to create a grouped product. Before 1.17.0, onlyproduct(...).per(...)was supported. -
Combined more
rai doctor reporttroubleshooting information into one zip file. Before 1.17.0, support cases could require bothdoctor_report_*.zipfromrai doctor reportand a separateoplog_report_*.zipfromrai doctor report-oplog. Nowrai doctor reportincludes that extra information indoctor_report_*.zip.
Bug Fixes and Diagnostics
Section titled “Bug Fixes and Diagnostics”-
Fixed cases where duplicated values in prescriptive
sum()andcount()expressions inside aProblemwere counted once in the aggregate instead of multiple times as expected. -
Fixed Direct Access for Snowflake Private Link accounts.
-
Fixed handling for cross-model mix-ups when code uses objects from one
Modelinside anotherModel. Some of these cases previously resulted in empty results or confusing errors. PyRel now raises a clear, direct error instead. -
Improved the error shown when
top(),bottom(), orlimit()is used in places that require a single value, such as comparisons or property values.