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
dbt-adapter: Hide the dependency on try_format_type behind a dyn trait (#5783)
* dbt-adapter: Hide the dependency on try_format_type behind a dyn trait
This means concrete adapter implementations don't depend directly on
`sdf_frontend` for the type formatting function anymore.
- Introduce the `TypeFormatter` trait to dbt-fusion-adapter and
provide an implementation for it in dbt-adapter
- Inject the `TypeFormatter` from the factory implementation all the way
to the `SqlEngine`
- Remove `convert_type_inner` and implement `convert_type` fully by
delegating to the `TypeFormatter` trait
- Introduce the `ReplayAdapter` trait that is implemented by
`DbtReplayAdapter`
- Change `is_replay() -> bool` to `as_replay() -> Option<&dyn ReplayAdapter>`
- Add a `NaiveTypeFormatterImpl` so it can be passed in the construction
of `ParseAdapter`
* cargo fmt
GitOrigin-RevId: 8faadd690d6f037501267bcbab834c15a1bd47f3
0 commit comments