GitHub user silence-tt created a discussion: 
表模型下使用or语句查询条件存在不存在的id,查询出来的接果中,id存在的数据有重复

在表模型下使用select * from xxx.table where device_id in ('11111','22222','33333') 
,当11111这个device_id在表中不存在,会使22222的数据出现重复行,但是使用select * from  xxx.table where 
device_id = 
'22222'查询确认重复的数据实际在表中只有一条。将11111在条件中去除后,查询数据正常。下面附上了查询的截图,以及验证是否有重复数据的截图
![查询截图](https://github.com/user-attachments/assets/c3933e79-c81d-4cf5-bdab-5dc6ab3d183a)
![验证截图](https://github.com/user-attachments/assets/1018633d-f98f-46c6-a4a0-9f4d06fabdd1)
想请教一下这个有什么好的方式避免吗?或者是我语法使用上有什么不正确吗,感谢



GitHub link: https://github.com/apache/iotdb/discussions/16571

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to