Evaluate Snowflake INSERT OVERWRITE … DELETING WHERE support

Ouverte
#6,296 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 4 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
python, sql

Piste de recherche

Start by tracing the Snowflake overwrite path and its callers, then compare source filtering, interval boundaries, empty results, multiple batches, and target reads. Check SQLGlot support, shared adapter behavior, supported table types, fallback or configuration needs, and relevant integration tests. Benchmark the existing transactional strategy against INSERT OVERWRITE … DELETING WHERE for scanning, locking, concurrency, and failures before recommending adoption, deferral, or no change.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Snowflake introduced INSERT OVERWRITE … DELETING WHERE on November 20, 2026. I'd like to understand whether it's worth using in SQLMesh's Snowflake adapter before we implement support. Keeping the current behavior may be the right answer.

SQLMesh already uses the shared delete-and-insert strategy for Snowflake time-range overwrites and wraps the operation in a transaction. Combining those statements doesn't by itself tell us whether correctness or performance improves. My concern is that we could add another engine-specific code path without enough benefit to justify maintaining it.

Please investigate:

  • What limitation of the current strategy this addresses, or what measurable benefit users would get. Separate what Snowflake documents from what the code suggests and what you've verified against Snowflake.
  • How the semantics compare. Trace the overwrite path and its callers, including source filtering, interval boundaries, empty results, multiple source batches, and queries that read the target table. Snowflake's deletion predicate doesn't filter inserted rows.
  • How it performs against the current transactional strategy on representative workloads. Consider scanning, locking, concurrent batch evaluation, and failure behavior where relevant. Fewer statements alone aren't evidence of lower cost or faster execution.
  • How it fits the existing overwrite strategies and whether we'd need a new one. Check SQLGlot support, effects on shared adapter behavior, supported table types, compatibility, and any fallback or configuration we'd need.
  • What we'd have to maintain: additional code paths, dependencies, and integration tests. Does the demonstrated benefit justify that work?

Recommend whether to adopt it, defer it, or leave the current behavior in place, with supporting evidence and any open questions. If adoption makes sense, propose the smallest scope that delivers the benefit.

Reference: Snowflake INSERT semantics and limitations.

Langage dominant
Python
Étoiles
3.3k
Forks
471
Merge moyen
6 j 7 h
PR mergées (30 j)
35

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de SQLMesh/sqlmesh

Toutes les issues de SQLMesh/sqlmesh

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.