Commit bc15fc7
microbatch cleanup pt.1 (#9328)
* microbatch cleanup pt.1: extract context builder, simplify is_incremental, consolidate materialization
- Extract `extend_microbatch_node_context` to decouple batch context setup from execution
- Extract `materialize_microbatch_model` into materialize.rs alongside other materialization fns
- Make `render_batch_sql` and `extend_microbatch_node_context` standalone (no TaskRunnerCtx dependency)
- Simplify `is_incremental`: early-return on full_refresh, drop RelationObject wrapper, drop redundant materialization check, remove unnecessary async
- Remove `BatchResult` struct and `execute_materialization_macro` duplication from microbatch.rs
- Cache materialization return value at call site (model.rs) like other materializations
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
* fix clippy/fmt, remove unused get_original_file_contents_async, add changie
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
* materialize.rs
* add res back
* cargo fmt / clippy
---------
Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
GitOrigin-RevId: 0e00cce933f8e81a0e5d6f10f95af25270a8a7301 parent e117381 commit bc15fc7
1 file changed
Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | 127 | | |
138 | 128 | | |
139 | 129 | | |
| |||
0 commit comments