aws / aws/amazon-redshift-python-driver
Getting the query id from the cursor
- 主要言語
- Python
- スター
- 220
- フォーク
- 86
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi - would it be possible to get the query id from the cursor instead of needing to run a separate query? Right now we have to make a separate call when we want to cancel the running query [like this](https://github.com/dbt-labs/dbt-adapters/blob/300ee9278b2568173c0c465399a69696cc085982/dbt-redshift/src/dbt/adapters/redshift/connections.py#L459) and would also like to easily log query ids in our application logs for customer debugging.
This is something that we get [from snowflake](https://github.com/dbt-labs/dbt-adapters/blob/b5d3fbf8b704e393d07b8f37371a9ebc7eb33e44/dbt-snowflake/src/dbt/adapters/snowflake/record/cursor/cursor.py#L19) but doesn't look like I can get it from the cursor here.
コントリビューションガイド
調査の方向性
Compare the Redshift connection usage in dbt-redshift connections.py with the cursor implementation referenced in dbt-snowflake cursor.py. Trace how the Redshift cursor is created and where query execution exposes metadata; done means callers can obtain the query id from the cursor for cancellation and application logging without a separate query.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, python
- 領域
- databases
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100