Repository navigation
Commit ce8316a
fix(scd2): preserve NULL values in historical rows
Select target values using an explicit row-existence flag carried into the SCD2 join. Choose a flag alias that does not overlap source or prefixed target columns, including case-insensitive names.
Co-authored-by: Nicholas <71755971+ionnich@users.noreply.github.com>
Signed-off-by: Arthur031221 <levi74108520963@gmail.com>1 parent ca3f919 commit ce8316a
5 files changed
Lines changed: 504 additions & 49 deletions
File tree
- sqlmesh/core/engine_adapter
- tests/core/engine_adapter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
2095 | 2095 | | |
2096 | 2096 | | |
2097 | 2097 | | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
2098 | 2103 | | |
2099 | 2104 | | |
2100 | 2105 | | |
| |||
2163 | 2168 | | |
2164 | 2169 | | |
2165 | 2170 | | |
| 2171 | + | |
2166 | 2172 | | |
2167 | 2173 | | |
2168 | 2174 | | |
| |||
2186 | 2192 | | |
2187 | 2193 | | |
2188 | 2194 | | |
| 2195 | + | |
2189 | 2196 | | |
2190 | 2197 | | |
2191 | 2198 | | |
| |||
2217 | 2224 | | |
2218 | 2225 | | |
2219 | 2226 | | |
2220 | | - | |
2221 | | - | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
2222 | 2232 | | |
2223 | | - | |
2224 | | - | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
2225 | 2236 | | |
2226 | 2237 | | |
2227 | 2238 | | |
| |||
0 commit comments