How to implement this query method
For the data of the same indicator over a period of time, I want to clean out the data with the same value as the previous one, and only keep the changed data. I want to achieve the same effect as “SELECT a.id ,a.value FROM test a left join test b on a.id+1=b.id where a.value!=b.value” does, but the DML and UDF provided by querying the official website documents seem to have no way to achieve similar effects. How to achieve this effect? thank you
Hi, this is your first issue in IoTDB project. Thanks for your report. Welcome to join the community!
Hi, this may be implemented by a UDF. You could buffer the current data, and output the current data once you meet a different value.
For the data of the same indicator over a period of time, I want to clean out the data with the same value as the previous one, and only keep the changed data. I want to achieve the same effect as “SELECT a.id ,a.value FROM test a left join test b on a.id+1=b.id where a.value!=b.value” does, but the DML and UDF provided by querying the official website documents seem to have no way to achieve similar effects. How to achieve this effect? thank you
Hi, we have implement a UDF as Built-in Function to do this job, you can see PR.
Sorry, I just finished two weeks of sick leave. I will check the new UDF. Thank you for your help!