[flight-rpc][flight-jdbc][sql] - Dynamic parameters on columns that created in runtime not working
- 主要語言
- Java
- 星號
- 94
- 分支
- 152
- 平均合併
- 3 天 16 小時
- 30 天內合併 PR
- 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