Support Restatements on SCD Type 2 and Use Them When Creating Preview Clone
Los mantenedores suelen responder en 4 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- python
- Área
- data-engineering, databases
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 3.3k
- Forks
- 471
- Merge medio
- 6 d 7 h
- PR fusionados (30 d)
- 35
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de SQLMesh/sqlmesh
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
SQLMesh/sqlmesh#6008 · 1 comentario ·
Los mantenedores suelen responder en 4 días
-
VSCode Extension: SQLMesh LSP crashes on startup: ImportError: cannot import name 'WorkspaceDiagnosticRefreshRequest' with lsprotocol 2025.xPosiblemente ocupada @boomesh11 la tomó hace 15 días. AbiertoBug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 4 días
-
Improvement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
SQLMesh/sqlmesh#5696 · 6 comentarios ·
Los mantenedores suelen responder en 4 días
Todos los issues de SQLMesh/sqlmesh
Issues similares
-
[BUG][Low–Medium] founder_numbers.py silently reads a SAFE discount or pool target given as a fraction (0.2) as 0.2%Posiblemente ocupada @sumitkhond111-del la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
bmad-code-org/BMAD-METHOD#3358 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
open-mmlab/mmcv#3352 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
OpenGithubs/weekly#263 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
comp/cli P3 type/feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
NousResearch/hermes-agent#162784 ·
Los mantenedores suelen responder en 1 día