doris icon indicating copy to clipboard operation
doris copied to clipboard

[Bug] 查询结果每次返回的都不一样

Open McClone opened this issue 2 years ago • 2 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Version

2.0.8

What's Wrong?

SELECT count(*) as cc FROM ( SELECT DISTINCT ac FROM xdr_source_log_login WHERE retm > '2024-05-01' and flag = 1 and sess <> 'logout' and scity <> '' and ac <> '' and sip in ( SELECT DISTINCT wall_ip FROM xdr_wall WHERE wall_reason LIKE '%被多IP登录失败且一天内这些IP没有登录成功%' and wall_time > '2024-05-14' and wall_time < '2024-05-21' ) ) T

What You Expected?

能得出正确的数量,查询结果不一致的场景非常多,这在数据库层面属于非常严重的问题

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

McClone avatar May 22 '24 06:05 McClone

两个表都是聚合模型,也不是文档里里面说的主键模型

McClone avatar May 22 '24 06:05 McClone

We're closing this issue because it hasn't been updated in a while. If you'd like to revive this issue, please reopen it and feel free a maintainer to remove the Stale tag!

github-actions[bot] avatar Sep 12 '25 00:09 github-actions[bot]