4paradigm / 4paradigm/OpenMLDB

Inconsistent results in online/offline mode while join condition includes null

未关闭
#3,685 2 条评论 0 个 reaction 已指派 2 人 已被 @aceforeverd 认领 在 GitHub 查看
bug execute-engine high-priority
主要语言
C++
星标
1.7k
派生
331
平均合并
12 天 12 小时
30 天内合并 PR
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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。