What's New in Version 1.0.6
Version 1.0.6 of the relationalai Python package is now available!
To upgrade, activate your virtual environment and run the following command:
pip install --upgrade relationalaiBug Fixes
Section titled “Bug Fixes”-
Fixed
require()checks that reference columns fromdata(). Before, a.require()condition that usedmodel.data()columns could emit a warning even when the input rows satisfied the requirement. Now PyRel warns only when the condition is actually violated. -
Fixed
std.math.isclose()so that it correctly evaluates an absolute-tolerance comparison. Before,std.math.isclose()could silently produce the wrong result in filters and selections. -
Fixed lookups on subtypes such as
Manager, a subtype ofEmployee. Before, a lookup such asManager.approves_budgetcould use the wrong relationship or raise a type mismatch. Now PyRel resolves the subtype before resolving the relationship. -
Improved reserved-name diagnostics for concepts and tables. Before, if you used a reserved name such as
alias,new, orrequire, the error could be unclear or point to the wrong place. Now PyRel points the error at the call site. For reserved table column names, the message also tells you to use table indexing, such astable["alias"].
Deprecations
Section titled “Deprecations”-
The
use_direct_accessconfig option is now deprecated in favor of thereasoners.backendsetting.Preferred configuration:
connections:snowflake:account: my-accountuser: my-userpassword: ${SNOWFLAKE_PASSWORD}database: MY_DBschema: PUBLICwarehouse: COMPUTE_WHreasoners:backend: direct_accessDeprecated configuration:
connections:snowflake:account: my-accountuser: my-userpassword: ${SNOWFLAKE_PASSWORD}database: MY_DBschema: PUBLICwarehouse: COMPUTE_WHuse_direct_access: trueExisting
use_direct_accessentries still work, but PyRel warns that they are deprecated and converts them toreasoners.backend: direct_access. For details, see Configure reasoners.