4paradigm / 4paradigm/OpenMLDB

colunm resolving: uncleared resolving to a rename node

オープン
#3,144 コメント 0 件 リアクション 0 件 担当者 1 名 @aceforeverd が担当を希望しています GitHub で見る
bug execute-engine minor
主要言語
C++
スター
1.7k
フォーク
331
平均マージ
12日 12時間
マージ済み PR(30日)
1

説明

```yaml
- id: 4
mode: batch-request-unsupport
desc: LASTJOIN(SimpleOps(FILTER))
sql: |
SELECT
t1.c1,
t1.c2,
t2.c1 as c21
FROM t1 last join (select c1 as c1r, c2, c3, c4 from t2 where c1 != 'aa') t2
on t2.c1r = t1.c1;
inputs:
- name: t1
columns: ["c1 string","c2 int","c3 bigint","c4 timestamp"]
indexs: ["index1:c1:c4"]
rows:
- ["aa",2,3,1590738989000]
- ["bb",21,31,1590738990000]
- ["cc",41,51,1590738991000]
- name: t2
columns: ["c1 string","c2 int","c3 bigint","c4 timestamp"]
indexs: ["index1:c1:c4"]
rows:
- ["aa",2,13,1590738989000]
- ["bb",21,131,1590738990000]
- ["dd",41,151,1590738991000]
expect:
columns:
- c1 string
- c2 int
- c21 string
order: c1
data: |
aa, 2, NULL
bb, 21, bb
cc, 41, NULL
```

`t2.c1 as c12` should not work ? It should be `t2.c1r as c12`

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

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

調査の方向性

The issue is about column resolution in SQL queries with renamed columns, specifically in a LAST JOIN context. Look at the SQL parsing and column resolution logic in the codebase, likely in the query planner or optimizer. The test case provided is a YAML specification; find where such tests are run to understand the expected behavior. The fix involves ensuring that column references after a rename (like `c1r`) are correctly resolved.

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

評価

技術スタック
sql
領域
databases
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

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

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