4paradigm / 4paradigm/OpenMLDB
Inconsistent results in online/offline mode while join condition includes null
- 主要言語
- C++
- スター
- 1.7k
- フォーク
- 331
- 平均マージ
- 12日 12時間
- マージ済み PR(30日)
- 1
説明
```
table: t1
columns: [ "c1 string","c2 int","c3 bigint","c4 timestamp" ]
indexs: [ "index1:c1:c4" ]
rows:
- [ NULL,2,3,1590738989000 ]
```
```
table: t2
- columns: [ "c1 string","c2 int","c3 bigint","c4 timestamp" ]
indexs: [ "index1:c1:c4" ]
rows:
- [ NULL,2,3,1590738989000 ]
```
`sql: select t1.c1,t1.c2,t2.c3,t2.c4 from t1 last join t2 ORDER BY t2.c4 on t1.c1=t2.c1;`
expect rows:
- [ null,2,3,1590738989000 ]
real rows:
- [ null,2,null,null ]
コントリビューションガイド
調査の方向性
The issue shows a SQL join query with a NULL equality condition producing different results in online vs offline modes. Start by locating the join implementation for 'last join' in the query engine, likely in the SQL execution or optimizer modules. Examine how NULL comparisons are handled in join conditions across execution modes. Run the provided test case to reproduce the inconsistency, then trace through the join logic to identify the divergence.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- sql
- 領域
- databases, machine-learning
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100