Add support for preconditions
まだ誰も着手していません。
評価
調査の方向性
No files, tests, or entry points are named in the issue. Start by resolving how precondition queries should be expressed and whether a false result is a no-op or a failure; done means the agreed behavior is implemented for SQL Runner playbooks and verified for both described use cases.
索引モデルが issue の本文から書いたものです。
説明
Use case 1
Imagine that:
- You have a process landing new data in Redshift roughly every 40-60 minutes
- You want to kick off a SQL Runner playbook as soon as the new data has arrived
- The playbook has a non-trivial runlength whether or not there is new data
- You want the playbook to complete as soon as possible
Use case 2
Imagine that:
- You want to upgrade a Redshift table by adding some columns
- You only want to perform the upgrade if the table is v0.5.0 and the table is empty
Solution
We could add a new feature to SQL Runner: playbook preconditions: for the playbook steps to be executed, all of the precondition queries must return TRUE. If any of them return FALSE, then the playbook doesn't run (a "no-op", or possibly a "failure").
Open question: whether it's a bit fiddly constructing the preconditions SQL queries to return TRUE/FALSE - it might be easier to add a syntax to compare the resultset with what's expected.
- 主要言語
- Go
- スター
- 81
- フォーク
- 15
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
snowplow/sql-runner のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
snowplow/sql-runner#218 · コメント 1 件 ·
-
Implement a loggerオープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
snowplow/sql-runner#194 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
snowplow/sql-runner#193 · コメント 1 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
snowplow/sql-runner#186 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
snowplow/sql-runner#185 ·
snowplow/sql-runner の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
keyxmakerx/Chronicle#1721 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Gentleman-Programming/gentle-ai#5720 ·
メンテナーはふだん 1 日以内に返信
-
compress: block buffers get re-zeroed on every call, and the zeroing is immediately overwrittenオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/ch-go#1218 ·
メンテナーはふだん 13 日以内に返信
-
effort:s impact:low raised-by:reviewer risk:low
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
medici-finance/assay#4251 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
Edwin-metcalf/MetCode#30 ·
メンテナーはふだん 1 日以内に返信