You are viewing documentation for an older version.
Profiles 0.8.x Changelog
2 minute read
Version 0.8.0
25 August 2023
What’s New
- Model Contracts - We have added support for model contracts and their validation. For every input or SQL model, there’s a new key
contract:which contains the following keys:is_optional(boolean, to indicate if the model is optional),is_event_stream(boolean, in case the data is event stream and has timestamp),with_entity_ids(list of all entities model contains),with_columns(list of all column names model have). A contract can be passed along with the model path inthis.DeRef. For more information, check out Model Contracts. - Inputs model - The keys
occurred_at_colandidsare now a part ofapp_defaults, to reinforce that they can also be overridden. - Schema has been migrated from 40 -> 42 in the project file.
Improvements
- The command
pb cleanup materialsnow removes tables generated by Python models also. pb show user-lookupnow includes user traits from Python models as well.- A few changes under the hood, for more efficient processing and execution.
Bug Fixes
- Fixed issue in Python models where validity of the train file wasn’t working and it so was retraining the model(s) on every run.
- Resolved the bug where wrong credentials in siteconfig file was not printing the exact error.
- Queries for checking warehouse access (grant) were duplicated and therefore recursively checking grants on the same models again and again. This resulted in taking more time than what was required. It has now been fixed.
pb migrate auto- There was an issue in migration of multi-line strings of SQL models, that has now been resolved.