Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add support for preconditions

オープン
#80 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
go, sql
領域
databases

調査の方向性

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

snowplow/sql-runner のほかの issue

snowplow/sql-runner の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。