What's New in Version 1.17.0
Version 1.17.0 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”-
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.