Python package and CLI 1.0.6
Version 1.0.6 fixes require() and isclose(), improves reserved-name errors, and deprecates use_direct_access in favor of direct_access.
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.0.6"For the latest installation instructions, see Start building with PyRel.
Bug 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. Use the top-leveldirect_accesssetting instead.Preferred configuration:
connections:snowflake:account: my-accountuser: my-userpassword: ${SNOWFLAKE_PASSWORD}database: MY_DBschema: PUBLICwarehouse: COMPUTE_WHdirect_access: trueDeprecated configuration:
connections:snowflake:account: my-accountuser: my-userpassword: ${SNOWFLAKE_PASSWORD}database: MY_DBschema: PUBLICwarehouse: COMPUTE_WHuse_direct_access: trueExisting
use_direct_accessentries still work. PyRel warns that they are deprecated and maps them to the top-leveldirect_accesssetting. For details, see Configure reasoners.