Investigate Amazon Redshift support (provisioned and serverless)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
Start by reading the existing grate.postgresql provider and its tests, then compare its connection, history, catalog, locking, and transaction assumptions with the Redshift behaviors named in the proposal. Evaluate provisioned and Serverless connectivity, including the Data API option, and record a provider and execution design with supported scope and limitations. Done means a documented decision and a real-target test plan for bootstrap, schema changes, reruns, failures, and concurrency.
索引モデルが issue の本文から書いたものです。
説明
Summary
Investigate adding Amazon Redshift as a migration target in grate, covering both provisioned clusters and Redshift Serverless. Determine whether it can be supported safely by adapting grate.postgresql or whether it requires a dedicated grate.redshift provider. Also evaluate an optional AWS Redshift Data API execution transport, analogous to the job-based approach proposed for BigQuery in #829.
This is a proposal for discussion rather than a commitment to a specific provider architecture.
Motivation
Redshift is an analytical data warehouse whose SQL syntax and protocol have PostgreSQL roots, but its DDL capabilities, catalog metadata, and operational behavior differ materially from PostgreSQL. Teams may want the same versioned, auditable database changes and script-folder conventions they use with grate for other systems, without assuming PostgreSQL compatibility where it is not guaranteed.
Potential migration use cases include creating and evolving schemas, tables, views, materialized views, and other supported Redshift database objects, plus controlled data transformations.
Proposed discovery / initial scope
- Compare the existing
grate.postgresqlprovider's bootstrapping, history tables, catalog queries, syntax, locking, and transaction behavior against Redshift. - Validate direct PostgreSQL-protocol connectivity and authentication against both provisioned and Serverless endpoints.
- Evaluate an alternative AWS SDK/.NET-based Redshift Data API transport using
ExecuteStatement/DescribeStatementand, where useful,BatchExecuteStatement; assess how asynchronous execution, sessions, idempotency tokens, and cancellation map to grate'sIDatabasecontract. - Determine the correct handling for one-time, anytime, every-time, and environment scripts, including script splitting and error reporting.
- Persist migration history and failure details in a dedicated schema or otherwise appropriate Redshift objects; verify permissions and concurrent migration behavior.
- Verify DDL transaction behavior per operation rather than assuming PostgreSQL semantics; define recovery rules for partially applied scripts.
- Document prerequisites, IAM/Secrets Manager or database authentication options, configuration, and costs.
- Add integration tests against real Redshift Provisioned and Serverless targets, with credentials supplied securely by the test environment.
Design questions
- Is a compatibility layer on top of
grate.postgresqlsufficient, or are there enough differences to justifygrate.redshift? - Should a Redshift Data API transport be a separate provider, an optional execution backend, or a later enhancement?
- Which DDL commands are transactional, and how should grate handle commands requiring execution outside an explicit transaction?
- What history-table/locking strategy avoids concurrent runners applying the same change?
- How should asynchronous requests be resumed or reconciled after a timeout or client crash, avoiding duplicate execution?
- Which objects and features should the first version support (internal schemas/tables/views only versus external schemas, Spectrum, datashares, materialized views, etc.)?
- How would a Redshift implementation fit with a proposed separation of migration targets, execution transports, and database semantics?
Suggested acceptance criteria for an initial implementation
- A documented decision is made on PostgreSQL provider reuse versus a dedicated Redshift provider.
- The basic test workflow runs against at least one real Redshift target: bootstrap history, apply initial table DDL, apply a second schema change, and re-run without repeating successful one-time scripts.
- Failures, partial application, retries, and concurrency are handled or explicitly documented as limitations.
- At least provisioned and Serverless connectivity are evaluated; unsupported modes are clearly documented.
- Provider-specific differences from PostgreSQL are covered by tests and documentation.
Non-goals (initial)
- Provisioning Redshift clusters/workgroups or managing infrastructure as code.
- Migrating data stored in S3 directly or managing AWS Glue catalogs independently of a Redshift execution target.
- Assuming generic PostgreSQL DDL or transactional behavior is automatically valid for Redshift.
- Supporting every Redshift administrative object in the first iteration.
Related work
- BigQuery provider proposal: #829
- Fabric Lakehouse provider proposal: #885
- AWS documentation: Amazon Redshift and PostgreSQL
- AWS documentation: Using the Amazon Redshift Data API
- AWS documentation: ExecuteStatement API
Discussion proposal: validate the smallest useful integration before deciding on a new NuGet provider package.
- 主要言語
- C#
- スター
- 305
- フォーク
- 59
- 平均マージ
- 1日 27分
- マージ済み PR(30日)
- 79
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
grate-devs/grate のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
grate-devs/grate#969 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
grate-devs/grate#971 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
grate-devs/grate#970 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
grate-devs/grate#967 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
grate-devs/grate#956 ·
メンテナーはふだん 1 日以内に返信
grate-devs/grate の issue をすべて見る
似ている issue
-
CLI: stale build hint, non-gofmt autocomplete output and a leftover `--revit=<year>` in the docsオープンCommand Line Utility (CLI)
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pyrevitlabs/pyRevit#4217 ·
メンテナーはふだん 1 日以内に返信
-
account bug effort:S P2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nightscout/nocturne#3745 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
modelcontextprotocol/csharp-sdk#2031 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
jsboige/CoursIA#27768 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
メンテナーはふだん 1 日以内に返信