You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Dynamically choose pydantic config field name to resolve deprecation warning (#1194)
Resolves#1047
### Description
The diff speaks for itself, choose the appropriate pydantic model config
field based on the version of pydantic in the environment.
This avoids the deprecation warning:
```
<my_repo>\env\Lib\site-packages\pydantic\_internal\_config.py:373: UserWarning: Valid config keys have changed in V2:
* 'allow_population_by_field_name' has been renamed to 'validate_by_name'
warnings.warn(message, UserWarning)
```
### Checklist
- [X] I have run this code in development and it appears to resolve the
stated issue
- [x] I have updated the `CHANGELOG.md` and added information about my
change to the "dbt-databricks next" section.
---------
Signed-off-by: Korijn van Golen <[email protected]>
Co-authored-by: Ben Cassell <[email protected]>
0 commit comments