What's New in Version 0.8.2
New Features and Enhancements
Section titled “New Features and Enhancements”-
Removed the requirement to specify return value type hints in functions wrapped with the
Model.export()
decorator. This simplifies creating stored procedures with a large number of output columns.For example:
# Old syntax:@model.export("sandbox.public")def get_adults_by_age(age: int) -> Tuple[str, int]: # <-- Return type hintsadult = Adult(age=age)return adult.name, adult.age# New syntax:@model.export("sandbox.public")def get_adults_by_age(age: int) # <-- No return type hintsadult = Adult(age=age)return adult.name, adult.age -
Removed the engine creation step from the
rai init
command. This change simplifies the initialization process by removing an unnecessary step, since engines are automatically created for each user when they run their first query. -
Improved error messages for queries that get aborted, either by a user cancelling the transaction or from some other issue. The error message is formatted more clearly and includes the reason that the transaction was aborted.