Code Monkey home page Code Monkey logo

Comments (4)

sunjiawe avatar sunjiawe commented on June 16, 2024 1

Check the conditional sliding window https://ekuiper.org/docs/en/latest/sqls/windows.html#the-trigger-condition-of-the-sliding-window

this is the demo in https://docs.tdengine.com/taos-sql/distinguished/#event-window

select _wstart, _wend, count(*) from t event_window start with c1 > 0 end with c2 < 10 

And this is the version I translated into ekuiper:

SELECT count(*) FROM t GROUP BY SlidingWindow(ss,60) FILTER(where c1 > 0) OVER(when c2 < 10)

FILTER control the window started, OVER control the window closed. And (ss,60) is an additional constraint on the windows length on time. Am I right?

from ekuiper.

ngjaying avatar ngjaying commented on June 16, 2024

Check the conditional sliding window https://ekuiper.org/docs/en/latest/sqls/windows.html#the-trigger-condition-of-the-sliding-window

from ekuiper.

sunjiawe avatar sunjiawe commented on June 16, 2024

Check the conditional sliding window https://ekuiper.org/docs/en/latest/sqls/windows.html#the-trigger-condition-of-the-sliding-window

how to exactly control the start point of the window?
refer: https://docs.tdengine.com/taos-sql/distinguished/#event-window
td can use start with expr1 end with expr2

conditional sliding window, in my understanding, only can control end with OVER(when expr)

from ekuiper.

sunjiawe avatar sunjiawe commented on June 16, 2024

Snipaste_2024-05-11_09-18-16

I don't think conditional sliding window meet my need. The doc mean Each piece of data meets the filtering conditions will trigger.

I want only trigger once when OVER expr, then the windows should reopen on FILTER expr

from ekuiper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.