Support Restatements on SCD Type 2 and Use Them When Creating Preview Clone
Maintainer antworten meist innerhalb von 4 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Ruhig
- Tech-Stack
- python
- Bereich
- data-engineering, databases
Rechercherichtung
Start by reading the SCD Type 2 implementation and the preview-clone flow; the issue does not name specific files or tests. Understand how inserts currently handle historical intervals, then determine how restating from a chosen date should affect both existing rows and preview clones. Done means the requested restatement behavior works and is covered by tests, including the preview-clone use case.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Currently SCD Type 2 supports only restating the model from the beginning of time. One could also restate a model at any point in history too but also end with the latest date. This how how it would work:
Lets say I am restating Jan 10th
Delete from the table where all valid_from >= Jan 10th
Update the table where all valid_to >= Jan 10th
This would reset the table to look like it was last run before the given start date.
Ideally, once this is implemented, when we create a preview clone of a model we would then configure the clone to restate this latest model with the new logic.
Suggestion for resolving that is to update the SCD Type 2 logic to always go through this delete/update logic on each insert. That way in most cases where we are just processing the newest interval it would be no-op (does require a scan though) and when we have to restate it would delete/update as expected.
Inherited from #3642
- Vorherrschende Sprache
- Python
- Sterne
- 3.3k
- Forks
- 471
- Ø Merge
- 6 T. 7 Std.
- Gemergte PRs (30 T.)
- 35
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus SQLMesh/sqlmesh
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 4 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 4 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
SQLMesh/sqlmesh#6008 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 4 Tagen
-
VSCode Extension: SQLMesh LSP crashes on startup: ImportError: cannot import name 'WorkspaceDiagnosticRefreshRequest' with lsprotocol 2025.xEvtl. vergeben @boomesh11 hat das vor 15 Tagen übernommen. OffenBug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 4 Tagen
-
Improvement
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
SQLMesh/sqlmesh#5696 · 6 Kommentare ·
Maintainer antworten meist innerhalb von 4 Tagen
Alle Issues in SQLMesh/sqlmesh
Ähnliche Issues
-
[BUG][Low–Medium] founder_numbers.py silently reads a SAFE discount or pool target given as a fraction (0.2) as 0.2%Evtl. vergeben @sumitkhond111-del hat das heute übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
bmad-code-org/BMAD-METHOD#3358 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
open-mmlab/mmcv#3352 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 68/100
OpenGithubs/weekly#263 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
comp/cli P3 type/feature
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
NousResearch/hermes-agent#162784 ·
Maintainer antworten meist innerhalb von 1 Tag