apache / apache/arrow-java

[flight-rpc][flight-jdbc][sql] - Dynamic parameters on columns that created in runtime not working

オープン
#114 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
94
フォーク
152
平均マージ
3日 16時間
マージ済み PR(30日)
11

説明

### Describe the bug, including details regarding any error messages, version, and platform.

Here's an example of code that causes the issue:
```## Doesn't work when the params are set on a created column on the fly
# stmt = text("SELECT *, (CASE WHEN (`OID` IS NULL) THEN :x ELSE :y END) as Temp FROM `Dynamic.Schema.Dts`.`Table`")
# rows = con.execute(stmt, {'x': 1, 'y': 0}).fetchall()
```

I'm unable to select with this query because I create a column on fly in runtime, after it's created I would like to query it.
And it's seems impossible.

I've tested it with: 15.0.2 and it still has the same issue.

Thank you in advance for the help.
If anymore information is required please comment that.

### Component(s)

FlightRPC, Java, Other

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、報告されているバージョン 15.0.2 を使用して、FlightRPC コンポーネントと flight-jdbc コンポーネントを通じて提供されたクエリを再現し、その後、実行時に作成される列のパラメーターがどのように処理されるかを追跡します。issue ではソースファイルもテストも指定されていません。完了条件は、提供された動的パラメーターでクエリが正常に実行され、この動作をカバーする回帰テストがあることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, sql
領域
api, database
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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