You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Minghui Liu (Jira)" <ji...@apache.org> on 2023/02/07 03:10:00 UTC
[jira] [Created] (IOTDB-5478) Incorrect query filter after binding schema and removing wildcard
Minghui Liu created IOTDB-5478:
----------------------------------
Summary: Incorrect query filter after binding schema and removing wildcard
Key: IOTDB-5478
URL: https://issues.apache.org/jira/browse/IOTDB-5478
Project: Apache IoTDB
Issue Type: Bug
Affects Versions: 1.0
Reporter: Minghui Liu
Assignee: Minghui Liu
Fix For: master branch
For example,
{code:java}
count_if(s1=1 & s2=0, 3) > 1 {code}
It will be transformed to incorrect result:
{code:java}
count_if(root.sg.d1.s1=1, 3) > 1 & count_if(root.sg.d1.s2=0, 3) > 1 & count_if(root.sg.d2.s1=1, 3) > 1 & count_if(root.sg.d2.s2=0, 3) > 1{code}
The correct result should be like:
{code:java}
count_if(root.sg.d1.s1=1 & root.sg.d1.s2=0, 3) > 1 &
count_if(root.sg.d1.s1=1 & root.sg.d2.s2=0, 3) > 1 &
count_if(root.sg.d2.s1=1 & root.sg.d1.s2=0, 3) > 1 &
count_if(root.sg.d2.s1=1 & root.sg.d2.s2=0, 3) > 1{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)