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
feat: new #[derive(IntoEngineData)] proc macro (delta-io#830)
## What changes are proposed in this pull request?
With the introduction of `EvaluationHandler::create_one`, we can create
`EngineData` now. This PR adds a handy new procedural macro to implement
a new `IntoEngineData` trait which allows for
`self.into_engine_data(schema, &dyn Engine)` as long as all fields
implement `Into<Scalar>` (for now just support the simple case of
all-primitive fields)
This would typically be used in conjunction with `ToSchema` to provide
the schema for the output `EngineData`.
### Future work
Need to implement tests (make doctest on `IntoEngineData` trait actually
build): lump that in to delta-io#514
1. need to rename `crate::` to `delta_kernel::` in macros
2. need to make all the types we need conditionally pub (that is, if
`cfg(doctest)` then make stuff `pub`)
3. need to do an `extern crate self as delta_kernel`
4. and finally, make the doctest a `no_run` (building) doctest
## How was this change tested?
new UT
0 commit comments